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

0 Members and 1 Guest are viewing this topic.

gswang

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

huiz

  • Swamp Rat
  • Posts: 913
  • 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_nz

  • Mesozoic keyThumper
  • SuperMod
  • Water Moccasin
  • Posts: 2125
  • 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
Retired; but they dragged me back in !

I live at UTC + 13.00

---
some people complain about loading the dishwasher.
Sometimes the question is more important than the answer.

huiz

  • Swamp Rat
  • Posts: 913
  • 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.