UIEvolutin Inc.
UJML Language Reference
Color Support

Determining device screen color support.

UJML provides several different ways to determine the device context for colors. See UJML Colors.

Determining display color support

Not all devices provide color displays. You can determine device support for color by calling the _getBooleanProperty() function with the &_PROPERTY_BOOLEAN_COLOR_CAPABLE; device information entity. See _getBooleanProperty() function, Boolean Device Information Entities. Devices without color support usually convert colors to a similar, gray-scale, value.

Determining display color depth

Not all devices provide the same number of colors, or of gray-scale levels if they do not support color. You can determine the device color depth/number of gray-scale levels using the _getIntProperty() function with the &_PROPERTY_INT_COLOR_DEPTH; device information entity. See _getIntProperty() function, Integer Device Information Entities.

Determining alpha opacity support

Not all devices support alpha opacity in colors or images. You can determine device support for alpha opacity by calling the _isSupported() function with the &_COLOR_ALPHA; device information entity. See _isSupported() function, Feature Support Information Entities.

Copyright (c) 2000-2007 UIEvolution, Inc. All rights reserved.
What do you think about this topic? Send feedback!