Page 1 of 1

1-bit binary transparency

Posted: Sat Mar 08, 2008 5:10 pm
by XnTriq
I would like to be able to view 1-bit monochrome images with transparency in such a way that transparent areas are actually displayed as transparent (= XnView's background color or the checkerboard pattern).

Re: 1-bit binary transparency

Posted: Sun Mar 09, 2008 4:49 pm
by xnview
XnTriq wrote:I would like to be able to view 1-bit monochrome images with transparency in such a way that transparent areas are actually displayed as transparent (= XnView's background color or the checkerboard pattern).
Ok, so as an option

Posted: Mon Mar 10, 2008 6:05 pm
by XnTriq
We already have an option for that: Use transparent index (<=8bits).
This works for images with 16- and 256-color palettes, but not for monochrome images (2-color palettes): BTW: How about combining the two separate settings (Use transparent index (<=8bits) & Use alpha channel) to a single option (Use transparency)?

Posted: Mon Mar 10, 2008 7:25 pm
by xnview
XnTriq wrote:We already have an option for that: Use transparent index (<=8bits).
This works for images with 16- and 256-color palettes, but not for monochrome images (2-color palettes):
B&W are not really a color palette picture!
[/list]BTW: How about combining the two separate settings (Use transparent index (<=8bits) & Use alpha channel) to a single option (Use transparency)?
Many users don't want a general setting for alpha & transparent index

Posted: Mon Mar 10, 2008 8:00 pm
by XnTriq
xnview wrote:
XnTriq wrote:We already have an option for that: Use transparent index (<=8bits).
This works for images with 16- and 256-color palettes, but not for monochrome images (2-color palettes):
B&W are not really a color palette picture!
I see. But why is transparency in “1-bit color graphics” or “binary images” ignored by XnView and handled differently than transparency in palette-based pictures?

Example of a non-B&W GIF that has a color depth of 1 bit and a transparent background:
  • Image

Posted: Tue Mar 11, 2008 7:41 am
by xnview
XnTriq wrote:
xnview wrote:
XnTriq wrote:We already have an option for that: Use transparent index (<=8bits).
This works for images with 16- and 256-color palettes, but not for monochrome images (2-color palettes):
B&W are not really a color palette picture!
I see. But why is transparency in “1-bit color graphics” or “binary images” ignored by XnView and handled differently than transparency in palette-based pictures?

Example of a non-B&W GIF that has a color depth of 1 bit and a transparent background:
  • Image
Yes, for me B&W picture are different than 1bit with color.
You have these different picture type B&W ( 1 ), Colour ( 1-8 ), Grey ( 8 ), 24/32 bits pictures

Posted: Wed Mar 12, 2008 10:15 pm
by XnTriq
Thanks for explaining, Pierre.

So the difference between 1-bit monochrome and 1-bit with color is somewhat similar to the difference between 8-bit grayscale and an indexed color palette of black + white + 254 continuous shades of gray (“fake grayscale”)?
Wikipedia ([url=http://en.wikipedia.org/wiki/Palette_(computing)]Palette[/url]) wrote:Grayscale images usually do not need palettes. The pixel values can be directly the gray level in a given range (0 to 15, 0 to 255), so image files that deal with grayscale images usually do not store a palette color map for this purpose.

Posted: Thu Mar 13, 2008 7:43 am
by xnview
XnTriq wrote: So the difference between 1-bit monochrome and 1-bit with color is somewhat similar to the difference between 8-bit grayscale and an indexed color palette of black + white + 254 continuous shades of gray (“fake grayscale”)?
Yes