I live in seoul korea ..
and I need help ..
I capture desktop screen (16 or 24 bit per pixel in color depth) .
and I want to convert it to 4 bit per pixel ( 16 color ) image ( 16
color DIB ) .
let me know how to do it ..
1. Learn how to work with DIBs (how to create and index 4bpp and 16/24bppQuote:> I live in seoul korea ..
> and I need help ..
> I capture desktop screen (16 or 24 bit per pixel in color depth) .
> and I want to convert it to 4 bit per pixel ( 16 color ) image ( 16
> color DIB ) .
You might want to do some dithering (Floyd-Steinberg comes to mind),
otherwise the result will be too ugly. The speed-limiting factors will be
the find_narest_color step, and F-S dithering step.
Alternatively, pay someone to do that for you, or buy a ready-made library
which does that.
I have been using the .NET framework to get icons for files/directories
and am trying to save the icons as transparent gifs. Now I know that most
of the graphics routines in .NET are built on top of GDI/GDI+, so that is
why I am asking the question in these forums.
I can get a handle to an icon just fine. I can even convert it to a
transparent bitmap just fine. However, this bitmap is 32 bits per pixel.
When I want to save this as a transparent gif, I cannot, because the
specification calls for a max of 8bpp.
So, given that, how can I convert or create a new bitmap that I can save
as a transparent gif, but reducing the resolution to 8bpp?
Thanks in advance for any help, it is greatly appreciated.
- Nicholas Paldino [.NET MVP]