static void displayGraphicArea(int startX, int startY, int width, int height, int graphicIndex)
Throws:
static void displayGraphicArea(int startX, int startY, int width, int height, String graphicNameOrFilename)
Throws:
_INSERT_METHOD_SIGNATURE_HERE_
Description:
by index:
Parameter | Range | Description |
---|---|---|
startX | 0 ... graphic width - 1 | horizontal offset in graphic |
startY | 0 ... graphic height - 1 | vertical offset in graphic |
width | 1 ... graphic width | width of the area to display |
height | 1 ... graphic height | height of the area to display |
graphicIndex | 0 ... max. graphic index | index of the graphic |
by name or filename:
Parameter | Range | Description |
---|---|---|
startX | 0 ... graphic width - 1 | horizontal offset in graphic |
startY | 0 ... graphic height - 1 | vertical offset in graphic |
width | 1 ... graphic width | width of the area to display |
height | 1 ... graphic height | height of the area to display |
graphicNameOrFilename | ASCII chars (0x01 .. 0xFF) or DOS filename (8.3 format) |
name of the graphic or name and path of the graphics file |
Draws a part of a graphic according to the graphic's graphicIndex or graphicNameOrFilename at the current cursor position.
Note
Example
Graphic.displayGraphicArea(100,200,10,20,5);
Graphic.displayGraphicArea(100,200,10,20,"GRAPHIC");
Graphic.displayGraphicArea(100,200,10,20,"DIR/FILE.RII");
Displays an area (100x200 pixel from pixel at position 10/20) of graphic with index 5 and graphic "GRAPHIC" from the on-board flash as well as graphic "FILE.RII" from the SD card's "DIR" folder at the current cursor position.
See also:
Graphic.displayLocalGraphic(int)
Control.setGraphicAlignment(int, int, int)
Extra.setGraphicOffset(int)
Extra.setGraphicNamePrefix(String)
Extra.setGraphicNameSuffix(String)
Attribute.setAlpha(int)
Attribute.setAdjustmentForGraphics(int)
Copyright © demmel products gmbh. All rights reserved.