BitmapEx and Clone

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

Andreas Viklund via DotNetMonster.com

Hi!

The OpenNETCF class BitmapEx does not have the function Clone(). Is there
some other way to do a copy of a BitmapEx object to an other BitmapEx
object?

/Andreas Viklund
 
A

Alex Feinman [MVP]

With the standard bitmap you can always do this:
Bitmap srcBitmap;
Bitmap dstBitmap;

dstBitmap = new Bitmap(srcBitmap.Width, srcBitmap.Height);
Graphics g = Graphics.FromImage(srcBitmap);
g.DrawImage(srcBitmap, 0, 0);
g.Dispose();

I presume that you can do the same thing with BitmapEx and GraphicsEx
 

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