Bitmap vs BitmapEx

  • Thread starter Thread starter Andreas Viklund via DotNetMonster.com
  • Start date 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
 
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
 
Back
Top