471,319 Members | 1,189 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 471,319 software developers and data experts.

PixelFormat.Format8bppIndexed in Bitmap Hangs!


I'm trying to convert Images using Bitmap class. I want to use
different options for example
reduce the size of image.

In my code I tried to create a Bitmap class instance with a Bitmap's
new Bitmap(source.Width, source.Height, PixelFormat.Format8bppIndexed);

The result was that program stopped executing and started to hang. If I
create a Bitmap
with a constructor Bitmap(source.Width, source.Height) everything is

Does anyone know what happends when I give PixelFormat class as an
third parameter
to Bitmap's constructor?

So, If this does not work how should I create different type of Bitmaps
with different features?

My purpose is to convert Color Tiff image to as light GrayScale Tiff
image as possible (ligth = size of the file is smallest). Can C#'s
Image handling classes help me or not.. anyone know
about this?


Jan 13 '06 #1
0 3664

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

3 posts views Thread by Flix | last post: by
2 posts views Thread by Phil Galey | last post: by
7 posts views Thread by Fir5tSight | last post: by
1 post views Thread by Nathan Sokalski | last post: by
reply views Thread by rosydwin | last post: by

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.