Intermec ck1 Reference Guide

Page of 390
Chapter 5 — Nano-X APIs 
CK1 SDK Programmer’s Reference Manual 
263 
 
Syntax: 
void        GrReadArea                    (GR_DRAW_ID id,
 
                                    GR_COORD x
                                    GR_COORD y
                                    GR_SIZE width
                                    GR_SIZE height
                                    GR_PIXELVAL *pixels); 
 
Parameters:  id   
Identification of the drawable to read an area from 
x   
X coordinate to read the area from relative to the drawable  
y   
Y coordinate to read the area from relative to the drawable  
width   Width of the area to read  
height   Height of the area to read  
pixels   Pointer to an area of memory to place the pixel data  
GrArea () 
 
Purpose:  Draw the specified pixel array of the specified size and format onto the 
specified drawable using the specified graphics context at the specified 
position. Note that color conversion is currently only performed when 
using the GR_PF_RGB format, which is an unsigned long containing 
RGBX data. 
 
Syntax: 
void        GrArea                        (GR_DRAW_ID id,
 
                                          GR_GC_ID gc
                                          GR_COORD x
                                          GR_COORD y
                                          GR_SIZE width
                                          GR_SIZE height
                                          void *pixels
                                          int pixtype); 
 
Parameters:  id  
Identification of the drawable to draw the area on  
gc  
Identification of the graphics context to use when drawing the 
area  
x  
X coordinate to draw the area at relative to the drawable  
y  
Y coordinate to draw the area at relative to the drawable  
width   Width of the area  
height   Height of the area  
pixels  
Pointer to an array containing the pixel data  
pixtype   Format of the pixel data