Continue to Site

Eng-Tips is the largest engineering community on the Internet

Intelligent Work Forums for Engineering Professionals

  • Congratulations waross on being selected by the Eng-Tips community for having the most helpful posts in the forums last week. Way to Go!

how to get graphics window coordinate?

wang.wei

Computer
Nov 13, 2024
1
I want to have a screen shot in c/c++。There are 2 api,UF_DISP_create_Framed_image ,ImageExportBuilder.They work in graphic window coordinate, so i need to know how to map the absolute point to the window pixel.
eg:
There is a IdSymbol in draft,box{100,100,100,100}. If i want to export this IdSymbol to an image ,i need to know where it is ,and its size in the screen (simply it`s different between screen resolution 720p and 4k ).
 

Part and Inventory Search

Sponsor