Intermec ck1 Reference Guide
Chapter 5 — Nano-X APIs
CK1 SDK Programmer’s Reference Manual
265
gc
Identification of the graphics context to use when drawing the
bitmap
bitmap
x
X coordinate to draw the bitmap at relative to the drawable
y
Y coordinate to draw the bitmap at relative to the drawable
width
Width of the bitmap
height
Height of the bitmap
imagebits Size of the image in bits
GrFreeImage ()
Purpose: Destroy the specified image buffer and reclaims the memory used by it.
Syntax:
void GrFreeImage (GR_IMAGE_ID id);
Parameter: id Identification of the image buffer to free
GrGetImageInfo ()
Purpose: Fill in the specified image information structure with the details of the
specified image buffer.
Syntax:
void GrGetImageInfo (GR_IMAGE_ID id,
GR_IMAGE_INFO *iip);
Parameters: id Identification of an image buffer
iip Pointer to a GR_IMAGE_INFO structure
GrDrawImageFromFile ()
Purpose: Load the specified image file and draw it at the specified position on the
specified drawable using the specified graphics context. The width and
height values specify the size of the image to draw. If the actual image is a
different size, it is scaled to fit. The image type is automatically detected
using the magic numbers in the image header (i.e., the filename extension
is irrelevant). The currently supported image types include GIF, JPEG,
Windows BMP, PNG, XPM, and both ASCII and binary variants of
PBM, PGM, and PPM. However the image types supported by a
particular server depend on which image types were enabled in the server
configuration at build time.
height values specify the size of the image to draw. If the actual image is a
different size, it is scaled to fit. The image type is automatically detected
using the magic numbers in the image header (i.e., the filename extension
is irrelevant). The currently supported image types include GIF, JPEG,
Windows BMP, PNG, XPM, and both ASCII and binary variants of
PBM, PGM, and PPM. However the image types supported by a
particular server depend on which image types were enabled in the server
configuration at build time.
Syntax:
void GrDrawImageFromFile (GR_DRAW_ID id,
GR_GC_ID gc,
GR_COORD x,
GR_COORD y,
GR_SIZE width,
GR_SIZE height,
char *path,
int flags);
GR_COORD x,
GR_COORD y,
GR_SIZE width,
GR_SIZE height,
char *path,
int flags);