Code Red > .NET

How to get bitmap of current window view, same as PNGOUT or JPGOUT?

(1/1)

gswang:
In C#, How to get bitmap of current window view, same as PNGOUT or JPGOUT?

huiz:




--- Code: ---
using acAppServ = Autodesk.AutoCAD.ApplicationServices;



internal static Bitmap CreateScreenShotOfDrawingArea(uint sizeX, uint sizeY)
{
    return  acAppServ.DocumentExtension.CapturePreviewImage(acAppServ.Application.DocumentManager.MdiActiveDocument, sizeX, sizeY);
}



--- End code ---

kdub_nz:
@huiz,

I like your footer. :)

huiz:
I still try to proof the sentence is incorrect but so far no luck  8)

Navigation

[0] Message Index

Go to full version