Author Topic: How to get bitmap of current window view, same as PNGOUT or JPGOUT?  (Read 1206 times)

0 Members and 1 Guest are viewing this topic.

gswang

  • Newt
  • Posts: 116
In C#, How to get bitmap of current window view, same as PNGOUT or JPGOUT?

huiz

  • Swamp Rat
  • Posts: 902
  • Certified Prof C3D
Re: How to get bitmap of current window view, same as PNGOUT or JPGOUT?
« Reply #1 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);
}


The conclusion is justified that the initialization of the development of critical subsystem optimizes the probability of success to the development of the technical behavior over a given period.

kdub

  • Mesozoic keyThumper
  • SuperMod
  • Water Moccasin
  • Posts: 1509
  • class keyThumper<T>:ILazy<T>
Re: How to get bitmap of current window view, same as PNGOUT or JPGOUT?
« Reply #2 on: November 23, 2022, 12:45:26 PM »
@huiz,

I like your footer. :)
called Kerry in my other life

Sometimes the question is more important than the answer.

I don't really work crazy hours . . I just live at UTC + 13.00
#ridesober

huiz

  • Swamp Rat
  • Posts: 902
  • Certified Prof C3D
Re: How to get bitmap of current window view, same as PNGOUT or JPGOUT?
« Reply #3 on: November 23, 2022, 04:54:16 PM »
I still try to proof the sentence is incorrect but so far no luck  8)
The conclusion is justified that the initialization of the development of critical subsystem optimizes the probability of success to the development of the technical behavior over a given period.