Intermec ck1 Reference Guide

Page of 390
Chapter 5 — Nano-X APIs 
CK1 SDK Programmer’s Reference Manual 
267 
gc  
Identification of the graphics context to use when drawing the 
image  
x  
X coordinate to draw the image at relative to the drawable  
y  
Y coordinate to draw the image at relative to the drawable  
width  
Maximum image width  
height  
Maximum image height  
imageid   Identification of the image buffer containing the image to 
display  
GrDrawImageBits () 
 
Purpose:  Draw the image contained in the specified image structure onto the 
specified drawable at the specified coordinates using the specified graphics 
context. 
 
Syntax: 
void        GrDrawImageBits               (GR_DRAW_ID id,
 
                                   GR_GC_ID gc
                                   GR_COORD x
                                   GR_COORD y
                                   GR_IMAGE_HDR *pimage); 
 
Parameters:  id  
Identification of the drawable to draw the image on  
gc  
Identification of the graphics context to use when drawing the 
image  
x  
X coordinate to draw the image at relative to the drawable  
y  
Y coordinate to draw the image at relative to the drawable  
pimage   Pointer to the image structure  
GrText () 
 
Purpose:  Draw the specified text string at the specified position on the specified 
drawable using the specified graphics context and flags. The default flags 
specify ASCII encoding and baseline alignment. 
 
Syntax: 
void        GrText                        (GR_DRAW_ID id,
 
                                          GR_GC_ID gc
                                          GR_COORD x
                                          GR_COORD y
                                          void *str
                                          GR_COUNT count
                                          int flags); 
 
Parameters:  id  
Identification of the drawable to draw the text string on  
gc  
Identification of the graphics context to use when drawing the text 
string  
x  
X coordinate to draw the string at relative to the drawable