
March 13th, 2003, 09:02 AM
|
|
Contributing User
|
|
Join Date: Mar 2003
Location: houston
Posts: 94
Time spent in forums: 8 h 40 m
Reputation Power: 6
|
|
|
Challenge
I am trying to figure a way to calculate the area of a given part of an image. Basically the idea is to build an interface in flash where you can load an image as say a jpg or gif and feed the interface some basic parameters like the over all dimensions like 10”x10” and give it a color value or take a color sample and have it calculate the area of the particular color like red for instance.
See sample image http://www.adlinda.com/sam.html
I’m thinking this should be doable. Actually I’m thinking it is simply a mater of counting pixels and calculating the percentage. I’m not sure how I might access the total pixels of a given image or the total “red” pixels.
|