View Single Post
Old 02-16-2005, 08:10 AM   #2 (permalink)
Belisarius
Java fanboy
 
Belisarius's Avatar
 
Join Date: Aug 2003
Posts: 1,175
Belisarius is on a distinguished road
How about creating your own Pixel object that implements Comparable? Define equals() and compareTo(), and then shove them into a Set of some sort (doesn't really matter which type). A Set will ignore duplicates, so all of the elements will be unique.
__________________
GitS
Belisarius is offline   Reply With Quote