Типа так?

Код AS3:
function hexToRGB(hex:uint):Object
{
var rgbObj:Object = {
red: ((hex & 0xFF0000) >> 16),
green: ((hex & 0x00FF00) >> 8),
blue: ((hex & 0x0000FF))
};
return rgbObj;
}
Цитата:
Сообщение от Dezar
то есть каналы красный, голубой и зеленый(значения от -255 до 255).
|
Вообще, в
http://www.adobe.com/livedocs/flash/...itmapData.html написано:
Цитата:
|
Each 32-bit integer is a combination of four 8-bit channel values (from 0 to 255) that describe the alpha transparency and the red, green, and blue (ARGB) values of the pixel.
|
Или у вас какая-то своя шкала для цветовых каналов?