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