Bitmap questions

  • Thread starter Thread starter Vortex
  • Start date Start date
V

Vortex

Hi,

A couple of quick questions:

1. Why is the Bitmap class tied to the UI? i.e. Why can I only use Bitmap
if I'm writing a UI app? What if I wanted to write an command line image
processing app? "using System.Drawing" fails.

2. Why does C# not support 2bpp (2 bits per pixel), but it supports
all/most of the image formats? i.e. 1bpp, 4bpp, 1555, 24bpp etc...


Thanks...

Vortex
 
processing app? "using System.Drawing" fails.
There are two steps to using a library. Sounds like you are missing the
first one.
1. Add reference to the assembly
2. Add a using at the top of the file (or use fully qualified names)

Cheers
Daniel
 
Daniel said:
There are two steps to using a library. Sounds like you are missing the
first one.
1. Add reference to the assembly
2. Add a using at the top of the file (or use fully qualified names)

Thanks Daniel, I'll try that. For now I just made it a very simple Form,
but I would like it to be a command line util in the future. I still think
it is a design error. Anyway...

Anyone know of an easy/quick was of saving a 2-bit/pixel PNG or GIF file
using C#? ...and why does Microsoft not support them. Hmmm, then I guess
there's the issue of reading them in again and displaying them. Bummer.

Any help or suggestions would be appreciated.

Hilton
 
Back
Top