ImageAdv.getPixelColor() This page was last modified over 30 day(s) ago and has 0 comment(s)


Back to ImageAdv Class Summary

Availability
Windows, Mac OSX, Linux

Usage
mdm.ImageAdv.getPixelColor(x:Number, y:Number):Array

Parameters
bitmap x/y values to locate pixel

Returns
array containing integer values for each RGB channel for given pixel

Description
this method returns array of integers that denote color value for each channel in RGB color space. To get valid results x and y location should be within bitmap image dimensions.

Notes

Example Code
if(image.isValid)
{
var rgbValues:Array = image.getPixelColor(x, y);
var r:int = rgbValues[0] as int;
var g:int = rgbValues[1] as int;
var b:int = rgbValues[2] as int;
};

mdm.ImageAdv Class Example Downloads
No Example Downloads Available


Registered Users must be logged in to 'MyAccount' to add a Comment - Log In Here
  After Logging In, Click Here to Refresh This Page