ACR89U-A1 – Reference Manual
Version 1.04
www.acs.com.hk
Page 47 of 57
Example:
4.2.4.3. AS_SetLcdDisplayGraphic
This function transfers bitmap graphics to ACR89 and displays the graphics on the LCD from the
current cursor position. The bitmap format is shown in the diagram (Figure 5). The cursor will be
moved to the position next to the lower-right corner of the graphic after executing this command. The
maximum dimensions for the bitmap are 128 pixels wide by 64 pixels high.
Row 0
Row 1
B
IT
-MAP BYT
E
1
B
IT
-MAP BYT
E
2
LSB
B
IT
-MAP BYT
E
N
…
MS
B
Figure 5
: Bitmap Format for ACR89 Reader
AS_STATUS AS_DECL AS_SetLcdDisplayGraphics (
IN INT nDevId,
IN PLCDGRAPHICS pLcdGraphics,
OUT PDISPLAYSTATUS pDisplayStatus);
Parameters:
nDevId
[in] Handle returned by a previous call to
AS_Open
.
pLcdGraphics
[in] Pointer to a
LCDGRAPHICS
structure that specifies the path to the bitmap
file. See also
Section 4.1.2.5
for more information about the
LCDGRAPHICS
structure.
pDisplayStatus
[out] Pointer to a
DISPLAYSTATUS
structure containing the cursor position after
displaying the graphics. See also
Section 4.1.3.4
for more information about the
DISPLAYSTATUS
structure.
Return Values:
AS_STATUS
This functions returns different values depending on whether it succeeds or fails.
AS_STATUS.DllError
contains the status as returned by the DLL.
AS_STATUS.W32Error
contains the Win32 error code associated with the DLL
error, if any. See also
Appendix A
for the possible return codes.
LCDBACKLIGHT lcdLight;
DISPLAYSTATUS lcdStatus;
AS_STATUS status;
//turn on the LCD backlight
//assumed is that a connection has already been established.
lcdLight.bEnableBackLight = TRUE;
status = AS_SetLcdBacklight(nDid, &lcdLight, &lcdStatus);