Forum Discussion
aqAnt
12 years agoSmartBear Alumni (Retired)
Hi Andrew,
The conversion was discussed on Stack Overflow. Here is the working solution:
function Test()
{
var bitmap_source = dotNET.System_Windows.Clipboard.GetImage();
var mstream = dotNET.System_IO.MemoryStream.zctor();
var encoder = dotNET.System_Windows_Media_Imaging.BmpBitmapEncoder.zctor();
encoder.Frames.Add(
dotNET.System_Windows_Media_Imaging.BitmapFrame.Create_5(bitmap_source)
);
encoder.Save(mstream);
var image_bitmap = dotNET.System_Drawing.Bitmap.zctor_4(mstream);
var image_graphics = dotNET.System_Drawing.Graphics.FromImage(image_bitmap);
}
Related Content
- 4 years agoStrone22
- 11 years agojimpson
- 9 years agotwhitehouse
- 7 years agojuliocesar_nec
Recent Discussions
- 2 days agoMW_Didata