Intermec ck1 Reference Guide

Page of 390
Chapter 5 — Nano-X APIs 
276 
CK1 SDK Programmer’s Reference Manual 
GrFindColor () 
 
Purpose:  Calculate the pixel value to use to display the specified color value. The 
color value is specified as a GR_COLOR, which is a 32-bit true color 
value stored as RGBX. The pixel value size depends on the architecture. 
 
Syntax: 
void        GrFindColor                     (GR_COLOR c,
 
                                  GR_PIXELVAL *retpixel); 
 
Parameters:  c    
Color value to find  
retpixel   Pointer to the returned pixel value  
GrGetSysColor () 
 
Purpose:  Get the colors in the server color lookup table. 
 
Syntax: 
GR_COLOR    GrGetSysColor                   (int index);
 
 
Parameter:  index   Index into the server color lookup table  
 
Return:  Color found at the specified index 
Regions API 
The name of this API is: 
regions —  
Synopsis 
GR_REGION_ID GrNewRegion                    (void); 
void        GrDestroyRegion                 (GR_REGION_ID region); 
void        GrUnionRectWithRegion           (GR_REGION_ID region, 
                                             GR_RECT *rect); 
void        GrUnionRegion                   (GR_REGION_ID dst_rgn, 
                                             GR_REGION_ID src_rgn1, 
                                             GR_REGION_ID src_rgn2); 
void        GrSubtractRegion                (GR_REGION_ID dst_rgn, 
                                             GR_REGION_ID src_rgn1, 
                                             GR_REGION_ID src_rgn2); 
void        GrXorRegion                     (GR_REGION_ID dst_rgn, 
                                             GR_REGION_ID src_rgn1, 
                                             GR_REGION_ID src_rgn2); 
void        GrIntersectRegion               (GR_REGION_ID dst_rgn, 
                                             GR_REGION_ID src_rgn1, 
                                             GR_REGION_ID src_rgn2); 
void        GrSetGCRegion                   (GR_GC_ID gc, 
                                             GR_REGION_ID region); 
GR_BOOL     GrPointInRegion                 (GR_REGION_ID region, 
                                             GR_COORD x, 
                                             GR_COORD y); 
int         GrRectInRegion                  (GR_REGION_ID region, 
                                             GR_COORD x,