Re[2]: [Flashcoders] Detecting the dominating colour in a rectangle of a bitmap

2006-01-12 Thread Iv
Hello elibol, Perhaps, you could use scaling BitmapData instance to the size of 1 pixel. The color of that pixel should be the mean color value of all pixels in scaled BitmapData instance. I would like to ask if anyone already have some sort method that calculates which colour in a rectangle

Re: [Flashcoders] Detecting the dominating colour in a rectangle of a bitmap

2006-01-10 Thread elibol
I think it would be a good accomplishment to write an algorithm that would intelligently evaluate pixel rgb(a) values for a precise result. I am sure you could get such an algorithm written in another language for a photoshop style application, the only thing you would have to do is find similiar

[Flashcoders] Detecting the dominating colour in a rectangle of a bitmap

2006-01-07 Thread Weyert de Boer
I would like to ask if anyone already have some sort method that calculates which colour in a rectangle is the dominating colou in a BitmapData instance. Because I would like to detect if some area of the image has a specific colour which is dominating - -for example black. Does anyone already