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

2006-01-10 Thread Troy Rollins


On Jan 7, 2006, at 8:15 PM, Tom Lee wrote:

Interesting idea... I don't have a method written, but the first  
thing I
would do is try blurring the image until it is one uniform color  
(perhaps

with a Transform Matrix), and then get the RGB of that color.


Well, that would get you the general tone of the image I guess. But I  
think "dominating color" would probably be better represented by  
determining a number of factors. Distinct differences in saturation,  
or value covering some measurable percentage of the image area perhaps.


Interesting concept to try in Flash though.

--
Troy
RPSystems, Ltd.
http://www.rpsystems.net


___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


RE: [Flashcoders] Detecting the dominating colour in a rectangle of abitmap

2006-01-07 Thread Tom Lee
Interesting idea... I don't have a method written, but the first thing I
would do is try blurring the image until it is one uniform color (perhaps
with a Transform Matrix), and then get the RGB of that color.   

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Weyert de
Boer
Sent: Saturday, January 07, 2006 3:04 PM
To: Flashcoders mailing list
Subject: [Flashcoders] Detecting the dominating colour in a rectangle of
abitmap

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 know of such a method?
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders