in reply to pixel counting
I'm just seeking clarification of your problem.
Are the images your after counting the pixels in, non-rectangular in shape?
Will compression have been applied to them?
GIFs and PNGs are usually rectangular in shape, and the size is embedded in the header and easily recoverable. The only way (that I am aware, though I'm open to correction?) that a non rectangular piece of an image could be represented in either format is by designating one of the colour table entries to be the "transparent background colour". So, to determine the number of pixels that constitute the visible part of the image means counting those not index by that colour table entry. However, that get further complicated if compression has been applied to the image.
|
---|
Replies are listed 'Best First'. | |
---|---|
pixel counting on a fouling panel
by redbeard (Beadle) on Jun 08, 2003 at 22:27 UTC | |
by Arguile (Hermit) on Jun 09, 2003 at 01:09 UTC | |
by redbeard (Beadle) on Jun 09, 2003 at 03:40 UTC | |
by Arguile (Hermit) on Jun 09, 2003 at 06:23 UTC | |
by redbeard (Beadle) on Jun 10, 2003 at 23:54 UTC | |
by BrowserUk (Patriarch) on Jun 09, 2003 at 03:53 UTC | |
by redbeard (Beadle) on Jun 09, 2003 at 05:05 UTC | |
by BrowserUk (Patriarch) on Jun 09, 2003 at 05:42 UTC | |
by redbeard (Beadle) on Jun 10, 2003 at 23:54 UTC |