Grabbin' da Woikbenchy

3 posts / 0 new
Last post
alfkil
alfkil's picture
Offline
Last seen: 1 year 1 month ago
Joined: 2011-05-10 22:02
Grabbin' da Woikbenchy
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)
Massi
Massi's picture
Offline
Last seen: 2 years 4 months ago
Joined: 2012-03-28 17:16
@alfkil Have a look at my
@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.
alfkil
alfkil's picture
Offline
Last seen: 1 year 1 month ago
Joined: 2011-05-10 22:02
@Massi Thanks for the link.
@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.
Log in or register to post comments