Bitmap vs BitmapEx

  • Thread starter Andreas Viklund via DotNetMonster.com
  • Start date
A

Andreas Viklund via DotNetMonster.com

Hi!

I am not really sure how to use the OpennetCF BitmapEX class. Could you use
it in the same way as the .NET CF's bitmap? It does not have the getpixel
and setpixel property, but lockbits and unlockbits, which I want to use,
but I cant figure out how to load a jpg-image to the BitmapEx. Is that
possible?

Is it possible to copy a Bitmap to a BitmapEx, or the other way around?

Best regards

Andreas Viklund
 
P

Peter Foot [MVP]

As with Bitmap you can use the constructor which takes a filename e.g.

BitmapEx mybitmap = new BitmapEx("\\My Documents\\picture.jpg");

Dim mybitmap As New BitmapEx("\My Documents\picture.jpg")

Peter
 

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

Similar Threads


Top