GPS4Palm

Source Code Documentation


dobitmap.c File Reference

#include <PalmOS.h>
#include <PalmCompatibility.h>
#include <Bitmap.h>
#include "BitmapRsrc.h"
#include "stringil.h"
#include "dobitmap.h"
#include "common.h"

Include dependency graph for dobitmap.c:

Go to the source code of this file.

Defines

#define ALLOW_ACCESS_TO_INTERNALS_OF_BITMAPS
#define bp   bmprsrc

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)
 Display image stored in memory area pointed to by **lines using WinDrawBitmap.

Variables

PrefsType gPrefs
 Preferences data structure.
char ** lines
unsigned short int w
unsigned short int h
unsigned short int bandh
Boolean gHdFtrSet
 High-Density Display Feature Set available.
RGBColorType map [256]


Define Documentation

#define ALLOW_ACCESS_TO_INTERNALS_OF_BITMAPS
 

Definition at line 59 of file dobitmap.c.

#define bp   bmprsrc
 

Referenced by dobitmap().


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().


Variable Documentation

unsigned short int bandh
 

Definition at line 99 of file gifread.c.

Referenced by cleanGIF(), cleanPNG(), and dobitmap().

Boolean gHdFtrSet
 

High-Density Display Feature Set available.

Definition at line 269 of file GPS.c.

Referenced by dobitmap(), HandleMessage(), MapFormHandleEvent(), NavigationFormHandleEvent(), and noMap().

PrefsType gPrefs
 

Preferences data structure.

Definition at line 279 of file GPS.c.

unsigned short int h
 

Definition at line 99 of file gifread.c.

Referenced by dobitmap(), HandleMessage(), InitializeWaypoints(), MapFormHandleEvent(), NavigationFormHandleEvent(), search_map(), SetFieldTextFromStr(), store_rte(), and store_wpt().

char** lines
 

Definition at line 106 of file gifread.c.

Referenced by cleanGIF(), cleanPNG(), dobitmap(), doGIF(), and doPNG().

RGBColorType map[256]
 

Definition at line 101 of file gifread.c.

Referenced by dobitmap(), and MapFormHandleEvent().

unsigned short int w
 

Definition at line 99 of file gifread.c.

Referenced by dobitmap(), HandleMessage(), MapFormHandleEvent(), progressbar(), and search_map().


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