TheSwamp

Code Red => .NET => Topic started by: gswang on November 23, 2022, 07:08:12 AM

Title: How to get bitmap of current window view, same as PNGOUT or JPGOUT?
Post by: gswang on November 23, 2022, 07:08:12 AM
In C#, How to get bitmap of current window view, same as PNGOUT or JPGOUT?
Title: Re: How to get bitmap of current window view, same as PNGOUT or JPGOUT?
Post by: huiz on November 23, 2022, 09:36:03 AM



Code: [Select]

using acAppServ = Autodesk.AutoCAD.ApplicationServices;



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


Title: Re: How to get bitmap of current window view, same as PNGOUT or JPGOUT?
Post by: kdub_nz on November 23, 2022, 12:45:26 PM
@huiz,

I like your footer. :)
Title: Re: How to get bitmap of current window view, same as PNGOUT or JPGOUT?
Post by: huiz on November 23, 2022, 04:54:16 PM
I still try to proof the sentence is incorrect but so far no luck  8)