Package ilcd
Class Draw

Public Method adjustDisplayArea

static void adjustDisplayArea(int mode, int width, int height)

Throws:

_INSERT_METHOD_SIGNATURE_HERE_

Description:

Parameter Range Description
mode Bit 0 ... 4 flags for possible modifications
width 0 ... display width (0 = full width) horizontal value for the area to be adjusted
height 0 ... display height (0 = full height) vertical value for the area to be adjusted

Adjusts the color values of all pixels in the area specified by width and height, beginning from the current cursor position. The value for any selected modification has to be set in advance and the corresponding mode must be set:

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

Draw.adjustDisplayArea(Draw.ADJUST_HUE |
                       Draw.ADJUST_SATURATION,
                       200, 100);

Adjusts hue and saturation in a 200x100 pixel area starting at the cursor position, using the previously set values.

See also:

Draw.adjustDisplay(int)
Attribute.setBrightnessAdjustment(int)
Attribute.setContrastAdjustment(int)
Attribute.setHueAdjustment(int)
Attribute.setSaturationAdjustment(int)
Attribute.setAdjustmentForGraphics(int)
Control.setCursorPosition(int, int)
Control.getCursorPosition()