Paul Thanks for the reply
Paul Hill wrote: > 2 problems come to mind: > - The fastest method would be to get at the pixel data directly but > this in itself is tricky as this could be in a number of different > formats. e.g. 1-8bit (palette based), 15/16 bit (555, 565, etc), 24 > bit, 32 bit (24bit with alpha channel). And these are just the easy > ones! > I can already see this as a stumbling block - but Malcolm's suggestion looks promising ... > - How are you going to count colours? If you're dealing with a 24 bit > image you can't use the 'tally table' method because your table would > be too big (4billion x integer size). > In my case I'm not expecting to get a tally of more than a few hundred colors, at most, even though the image may be a 24-bit image. > P.S. write the code in C :-) :-( Best Paul Newton _______________________________________________ Post Messages to: [email protected] Subscription Maintenance: http://leafe.com/mailman/listinfo/profox OT-free version of this list: http://leafe.com/mailman/listinfo/profoxtech Searchable Archive: http://leafe.com/archives/search/profox This message: http://leafe.com/archives/byMID/profox/[EMAIL PROTECTED] ** All postings, unless explicitly stated otherwise, are the opinions of the author, and do not constitute legal or medical advice. This statement is added to the messages for those lawyers who are too stupid to see the obvious.

