BitmapEx and Clone

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