GPS4Palm

Source Code Documentation


dobitmap.h File Reference

This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Defines

#define DOBITMAP_SECTION   __attribute__ ((section ("maps")))

Functions

void dobitmap (short unsigned int xofs, short unsigned int yofs, short unsigned int mag, short unsigned int dx, short unsigned int dy, short unsigned int dw, short unsigned int dh, short unsigned int deep) DOBITMAP_SECTION
 Display image stored in memory area pointed to by **lines using WinDrawBitmap.


Define Documentation

#define DOBITMAP_SECTION   __attribute__ ((section ("maps")))
 

Definition at line 38 of file dobitmap.h.


Function Documentation

void dobitmap short unsigned int  xofs,
short unsigned int  yofs,
short unsigned int  mag,
short unsigned int  dx,
short unsigned int  dy,
short unsigned int  dw,
short unsigned int  dh,
short unsigned int  deep
 

Display image stored in memory area pointed to by **lines using WinDrawBitmap.

Parameters:
xofs x-offset within image
yofs y-offset within image
mag magnification (1..8)
dx x-coordinate of bitmap (display coords)
dy y-coordinate of bitmap (display coords)
dw width of bitmap (display coords)
dh height of bitmap (display coords)
deep display depth
Note:
Depends on w, h, bandh globals

The function relies on the internals of the Palm OS bitmap structures defined in Bitmap.h. Since internals of Palm OS structures are subject to change, this may not work with future OS versions.

From SDK-4 to SDK-5r3, BitmapType changed to BitmapTypeV2 (same members, different name...)

this is big endian for 68K Processors

Definition at line 106 of file dobitmap.c.

References b, bandh, BmpRsrcCreate(), BmpRsrcGetBits(), BmpRsrcGetPixelFormat(), BmpRsrcV3Create(), bp, PrefsType::depth, PrefsType::dh, PrefsType::dw, PrefsType::dx, PrefsType::dy, g, gHdFtrSet, gPrefs, h, BmpRsrcV2Type::height, lines, PrefsType::mag, map, memset(), BmpRsrcV2Type::pixelSize, r, BmpRsrcV2Type::rowBytes, StrLen, BmpRsrcType::v2, BmpRsrcV2Type::version, w, BmpRsrcV2Type::width, PrefsType::xofs, and PrefsType::yofs.

Referenced by MapFormHandleEvent().


Created: Mon, 08 Oct 2007 22:33:16 +0200
Copyright ©2004 M. Prinke