Forum Discussion
aqAnt
Alumni
13 years agoHello Russell,
You can perform the conversion with Windows Clipboard. For example:
function Test()
{
var image = dotNET.System_Drawing.Bitmap.zctor("C:\\image.bmp");
image = dotNET.System_Windows_Interop.Imaging.CreateBitmapSourceFromHBitmap(
image.GetHbitmap(),
dotNET.System.IntPtr.Zero,
dotNET.System_Windows.Int32Rect.Empty,
dotNET.System_Windows_Media_Imaging.BitmapSizeOptions.FromEmptyOptions()
);
dotNET.System_Windows.Clipboard.SetImage(image);
var picture = Sys.Clipboard;
Log.Picture(picture);
}