I am trying to port a super simple screengrabber for Qt, and I am having some trouble getting a decent grab of the workbench.
Here are three screenshots.
Screenshot 1
Screenshot 2
Screenshot 3
The first is from sgrab, notice how everything is perfect.
The second one is using p96Read/WritePixelArray, notice how FlipClock is white and areas with transparency look odd.
The third is using ClipBlit, which is even worse.
How is it possible to do what sgrab does??
(By the way, I am using the RastPort in the Screen struct as source for my reads)
@alfkil
Have a look at my app Ami-PrintScreen available from OS4 Depot, the source code is included in the LHA archive, I hope it can be of help.
@Massi
Thanks for the link. It seems, that ReadPixelArray gets the data right, but then WritePixelArray screws it up. I forced the renderinfo to use R8G8B8 (no alpha channel), and now it works.