> You can only save a GIF image in 8 bit. You can simulate gray scale by
> creating a monochrom palette.
> you mean indexed palette?
> i don't get it. there are options for encoders, like Encoder.ColorDepth
> but they don't work?? what for are they then?
They do work when used correctly.
> i need a 8bit grayscale bitmap file. tiff or jpeg would be nice.
> 24bit image with simulated gray colors won't do the job.
An indexed palette is still an 8 bit image, not 24. The palette contains 256
entries all of which are shades of gray.
> i also don't understand what for is a Bitmap(int,int,PixelFormat)
> constructor??
It creates bitmaps of different pixel formats.
> if i use something else than RGB i cant draw anything to
> that bitmap. every time i try to create a Graphics object from such
> bitmap i get exceptions.
That is correct for some formats. You can't paint onto a 8 bit indexed
bitmap because I presume it would be too complicated for the graphics object
to modify the palette to suit the painting being done.