Overview
Examples
Screenshots
Comparisons
Applications
Download
Documentation
Tutorials
Bazaar
Status & Roadmap
FAQ
Authors & License
Forums
Funding Ultimate++
Search on this site
Search in forums












SourceForge.net Logo
Home » U++ Library support » U++ Library : Other (not classified elsewhere) » Fastest way to capture control as image
Fastest way to capture control as image [message #60600] Thu, 30 May 2024 15:15 Go to previous message
luoganda is currently offline  luoganda
Messages: 214
Registered: November 2016
Experienced Member
What would be the best way to capture GLCtrl(or even screen) pixels into ImageBuffer?
There is a demo GrabDesktop(or something like that), but it's just for win32(gdi) and it's too slow,
i think it's using SysInfo as main capturer(Snap_DesktopRectangle,etc).

I tried using glReadPixels(0,0,xs,ys,GL_BGRA_EXT,GL_UNSIGNED_BYTE,~ib);
but i always get an error 1282. Also tried GL_BGRA and GL_RGBA, the same thing.

This would be probably the best way, or is there a better one,
eg upp-ish one?

[Updated on: Thu, 30 May 2024 15:17]

Report message to a moderator

 
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Horizontal Mouse Wheel support request
Next Topic: selection in ColumnList
Goto Forum:
  


Current Time: Tue May 13 18:29:29 CEST 2025

Total time taken to generate the page: 0.03564 seconds