Altering the PixelFormat of an Image

  • Thread starter Thread starter Phil Galey
  • Start date Start date
P

Phil Galey

If you have a bitmap, but need for it to be of a different PixelFormat, how
can you do that? PixelFormat is ReadOnly. Does it have to be done while
Drawing to a graphics object? I wonder if there's a code sample available
somewhere in which this is done. Thanks

Phil Galey
 
Hi,

Create a new bitmap and specify the pixelformat in the
constructor. Draw the old image on the new bitmap.

Ken
---------------------
If you have a bitmap, but need for it to be of a different PixelFormat, how
can you do that? PixelFormat is ReadOnly. Does it have to be done while
Drawing to a graphics object? I wonder if there's a code sample available
somewhere in which this is done. Thanks

Phil Galey
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top