Question array.exists class count

carltrob

New member
Joined
Jul 28, 2008
Messages
1
Programming Experience
3-5
i have a class that among other things holds the X and Y position of a pixel. because of the number of these pixels i have an array made up of this class.

i need to count all pixels in the array where the x and y values meat a preset value. I have done this by looping through the array but this causes large overheads and slows my program to a crawl.

Is there a way using "array.exists" or something similer where i can make this check. since all the help i have found does not take into acount arrays made from classes
 
Back
Top