Direct Drive LCD Design Guide
4.1.9 LCDSetRasterOffset
Request display location within larger raster image
Format
sI16 LCDSetRasterOffset(sI16 x, sI16 y);
Parameters
x
X offset in pixels within the raster.
y
Y offset in pixels within the raster.
Return Values
0 on success, non-0 on failure
Properties
Prototyped in file ”DirectLCD.h”
Implemented in file “DirectLCD_SBF.c” for H8S family or “DirectLCD_XBCFT.c” for H8SX family.
Description
LCDSetRasterOffset changes the display position within the raster. The offset is limited to be within area
allocated by the FRAME_HEIGHT x FRAME_WIDTH space. If raster is the same size as the panel, the
offset cannot be changed (fixed to 0,0).
Note that LCDSetActiveRaster, LCDSetRasterOffset and LCDSetLineSource are similar in function and
interact.
Example
sI16 x = 40, y=20;
……
If (LCDSetRasterOffset (x, y) != 0) //set raster offset
// handle error;
22