public interface CommonLCD
Modifier and Type | Field and Description |
---|---|
static int |
ROP_AND |
static int |
ROP_ANDINVERTED |
static int |
ROP_ANDREVERSE |
static int |
ROP_CLEAR
Common raster operations for use with bitBlt
|
static int |
ROP_COPY |
static int |
ROP_COPYINVERTED |
static int |
ROP_EQUIV |
static int |
ROP_INVERT |
static int |
ROP_NAND |
static int |
ROP_NOOP |
static int |
ROP_NOR |
static int |
ROP_OR |
static int |
ROP_ORINVERTED |
static int |
ROP_ORREVERSE |
static int |
ROP_SET |
static int |
ROP_XOR |
Modifier and Type | Method and Description |
---|---|
void |
bitBlt(byte[] src,
int sw,
int sh,
int sx,
int sy,
byte[] dst,
int dw,
int dh,
int dx,
int dy,
int w,
int h,
int rop)
Standard two input BitBlt function.
|
void |
bitBlt(byte[] src,
int sw,
int sh,
int sx,
int sy,
int dx,
int dy,
int w,
int h,
int rop)
Standard two input BitBlt function with the LCD display as the
destination.
|
void |
clear()
Clear the display.
|
byte[] |
getDisplay()
Provide access to the LCD display frame buffer.
|
int |
getHeight()
Return the height of the associated drawing surface.
|
byte[] |
getHWDisplay()
Get access to hardware LCD display.
|
int |
getWidth()
Return the width of the associated drawing surface.
|
void |
refresh()
Refresh the display.
|
void |
setAutoRefresh(boolean on)
Turn on/off the automatic refresh of the LCD display.
|
int |
setAutoRefreshPeriod(int period)
Set the period used to perform automatic refreshing of the display.
|
void |
setContrast(int contrast)
Set the LCD contrast.
|
static final int ROP_CLEAR
static final int ROP_AND
static final int ROP_ANDREVERSE
static final int ROP_COPY
static final int ROP_ANDINVERTED
static final int ROP_NOOP
static final int ROP_XOR
static final int ROP_OR
static final int ROP_NOR
static final int ROP_EQUIV
static final int ROP_INVERT
static final int ROP_ORREVERSE
static final int ROP_COPYINVERTED
static final int ROP_ORINVERTED
static final int ROP_NAND
static final int ROP_SET
void refresh()
void clear()
int getWidth()
int getHeight()
byte[] getDisplay()
byte[] getHWDisplay()
void setContrast(int contrast)
contrast
- 0 blank 0x60 full onvoid bitBlt(byte[] src, int sw, int sh, int sx, int sy, int dx, int dy, int w, int h, int rop)
src
- byte array containing the source imagesw
- Width of the source imagesh
- Height of the source imagesx
- X position to start the copy fromsy
- Y Position to start the copy fromdx
- X destinationdy
- Y destinationw
- width of the area to copyh
- height of the area to copyrop
- raster operation.void bitBlt(byte[] src, int sw, int sh, int sx, int sy, byte[] dst, int dw, int dh, int dx, int dy, int w, int h, int rop)
src
- byte array containing the source imagesw
- Width of the source imagesh
- Height of the source imagesx
- X position to start the copy fromsy
- Y Position to start the copy fromdst
- byte array containing the destination imagedw
- Width of the destination imagedh
- Height of the destination imagedx
- X destinationdy
- Y destinationw
- width of the area to copyh
- height of the area to copyrop
- raster operation.void setAutoRefresh(boolean on)
on
- true to enable, false to disableint setAutoRefreshPeriod(int period)
period
- time in ms