Package ilcd
Class Attribute

Public Method setAdjustmentForGraphics

static void setAdjustmentForGraphics(int mode)

_INSERT_METHOD_SIGNATURE_HERE_

Description:

Parameter Range Description
mode Bit 0 ... 4 adjustable mode (see below)

Sets the adjustments used for all graphics drawn subsequently. The value for any selected modification has to be set before the actual drawing method is called. Only the modifications set in the mode bitmask will be carried out:

mode
ADJUST_BRIGHTNESS (see Attribute.setBrightnessAdjustment(int))
ADJUST_CONTRAST (see Attribute.setContrastAdjustment(int))
ADJUST_HUE (see Attribute.setHueAdjustment(int))
ADJUST_SATURATION (see Attribute.setSaturationAdjustment(int))
ADJUST_INVERT

Note

Example

Attribute.setAdjustmentForGraphics(Attribute.ADJUST_INVERT);

All future graphic drawing will have the color values inverted. To restore the default settings:

Attribute.setAdjustmentForGraphics(0);

See also:

Graphic.displayLocalGraphic(int)
Graphic.displayGraphicArea(int, int, int, int, int)
Draw.fillDisplay()
Draw.fillDisplayArea(int, int)
Draw.drawRectangle(int, int, int)
Draw.drawStyledCircle(int, int)