EasyManuals Logo

Texas Instruments TI-89 Developer's Guide

Texas Instruments TI-89
1398 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Page #1187 background imageLoading...
Page #1187 background image
Appendix A: System Routines — Windows
1145
TI
-
89 / TI
-
92 Plus Developer Guide
Not for Distribution
Beta Version January 26, 2001
CalcBitmapSize
Declaration:
WORD
CalcBitmapSize
(BITMAP *
bitmapPtr
)
Category(ies):
Windows
Description:
Calculate a BITMAP size given a pointer to a BITMAP structure.
Inputs:
bitmapPtr
Pointer to BITMAP structure.
Outputs:
Size in bytes of a BITMAP pointed to by
bitmapPtr.
typedef struct {
WORD NumRows;
WORD NumCols;
BYTE Data[1];
} BITMAP;
Assumptions:
Compare this routine with
WinBitmapSize
and
WinBitmapSizeExt
which
compute the size of a BITMAP if it were pulled out of a given window.
Side Effects:
None
Availability:
On AMS 2.00 and higher.
TI
-
89 / TI
-
92 Plus
Differences:
None
See Also: WinBitmapSize, WinBitmapSizeExt, WinGetBitmap, WinPutBitmap
Example:
/* Return HANDLE of the copy of a BITMAP or H_NULL if not enough memory */
HANDLE BitmapCopy( BITMAP *bPtr )
{ HANDLE hCopy;
WORD size = CalcBitmapSize( bPtr );
if (hCopy = HeapAlloc( size ))
memcpy( HeapDeref(hCopy), bPtr, size );
return hCopy;
}

Table of Contents

Other manuals for Texas Instruments TI-89

Questions and Answers:

Question and Answer IconNeed help?

Do you have a question about the Texas Instruments TI-89 and is the answer not in the manual?

Texas Instruments TI-89 Specifications

General IconGeneral
Display size (HxV)100 x 160 mm
Memory type639K FLASH ROM, 188K bytes RAM
Compatible operating systemsOperating System 2.09
Battery typeAAA

Related product manuals