BitmapEX OpenNETCF

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

Andreas Viklund via DotNetMonster.com

Hi!

I am having some trouble using the BitmapEx class in the OpenNETCF
framework. Is it possible to convert between a bitmap and a bitmapex, or
the otherway around?
If you want to display a BitmapEx on a Pocket PC, how should you do then?
The PictureBox.Image = bitmapex does not work.

What is the GetHbitmap() function i BitmapEx and how do you use it?

regards

Andreas Viklund
 
P

Peter Foot [MVP]

Since there isn't a way to convert directly from a BitmapEx to a Bitmap or
vice-versa, you'll need to use the accompanying GraphicsEx class to draw the
BitmapEx to screen. Use the FromControl method to get a GraphicsEx instance
for your form or control, and then use the DrawImage method to draw your
BitmapEx.

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

Top