representation of binary and grey-scale images

Discussions on GFL SDK, the graphic library for reading and writing graphic files

Moderators: helmut, XnTriq, xnview

Antoine
Posts: 7
Joined: Mon Mar 07, 2005 8:52 pm

representation of binary and grey-scale images

Post by Antoine »

Hi,
I was interested to know how gfl represents particularly binary images. IM represents all images with either 40 (Q8) or 80 (Q16) bits... needless to say it is a complete dog with large images. Resizing an A0 takes upto an hour! Some toolkits can use a single bit (apparently...) for binary images, making memory not really an issue. What is the story with the gfl?
Cheers
Antoine
User avatar
xnview
Author of XnView
Posts: 45870
Joined: Mon Oct 13, 2003 7:31 am
Location: France

Re: representation of binary and grey-scale images

Post by xnview »

Antoine wrote:Hi,
I was interested to know how gfl represents particularly binary images. IM represents all images with either 40 (Q8) or 80 (Q16) bits... needless to say it is a complete dog with large images. Resizing an A0 takes upto an hour! Some toolkits can use a single bit (apparently...) for binary images, making memory not really an issue. What is the story with the gfl?
GFL use 1 bit for binary images, and 8bits for greyscale
Pierre.
Antoine
Posts: 7
Joined: Mon Mar 07, 2005 8:52 pm

Post by Antoine »

Great to know! Thanks
Cheers
Antoine