Package ilcd
Class Control

Public Method getGraphicInfo

static GraphicInfo getGraphicInfo(int graphicIndex)

Throws:

static GraphicInfo getGraphicInfo(String graphicNameOrFilename)

Throws:

_INSERT_METHOD_SIGNATURE_HERE_

Description:

by index:

Parameter Range Description
graphicIndex 0 ... max. graphic index index of the graphic

by name or filename:

Parameter Range Description
graphicNameOrFilename ASCII chars (0x01 .. 0xFF) or
DOS filename (8.3 format)
name of the graphic or
name and path of the graphics file

both methods return:

Returns Description
static GraphicInfo information about the graphic

Both methods return a GraphicInfo object which contains information of a specific graphic.


Note

Example

GraphicInfo graphicA = Control.getGraphicInfo(0);
GraphicInfo graphicB = Control.getGraphicInfo("GRAPHIC");
GraphicInfo graphicC = Control.getGraphicInfo("DIR/FILE.RII");

int     graphicA_colorDepth     = graphicA.getColorDepth();
int     graphicA_graphicIndex   = graphicA.getGraphicIndex();
String  graphicA_graphicName    = graphicA.getGraphicName();
Size    graphicA_size           = graphicA.getSize();
boolean graphicA_isAnimated     = graphicA.isAnimated();
boolean graphicA_isDisabled     = graphicA.isDisabled();
boolean graphicA_isTransparent  = graphicA.isTransparent();
int     graphicA_numberOfFrames = graphicA.getNumberOfFrames();

The first three methods will read the information of the graphic with index 0 and graphic "GRAPHIC" from the on-board flash as well as graphic "FILE.RII" from the SD card's "DIR" folder. Alternatively a value can be optained with a single call:

String graphicName = Control.getGraphicInfo(0).getGraphicName();
Size   graphicSize = Control.getGraphicInfo(5).getSize();

See also:

GraphicInfo
Graphic.displayLocalGraphic(int)
Graphic.loadAnimatedGraphics(int, int)