
Hello, I already studied the references of gtk2hs for hours, as well as searched in the web, but didn't found any working solution. The problem is to load an image, a png with alpha channel, rotate it e.g. 10 degree, and show it on the screen, basically as when it would be shown with imageNewFromFile with transparency. Thanks in advance for your help. -- Best regards H.

You could use Cairo. Load the image to a surface, then rotate the
surface 10 degrees and paint it.
Alternately, in Hieroglyph:
renderToPNG w h "image.png" $ rotate 10 image{ filename='whatever.png' }
On Mon, Aug 24, 2009 at 3:57 PM, h
Hello,
I already studied the references of gtk2hs for hours, as well as searched in the web, but didn't found any working solution.
The problem is to load an image, a png with alpha channel, rotate it e.g. 10 degree, and show it on the screen, basically as when it would be shown with imageNewFromFile with transparency.
Thanks in advance for your help.
-- Best regards H.
_______________________________________________ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe

Hello,
You could use Cairo. Load the image to a surface, then rotate the surface 10 degrees and paint it.
The first steps aren’t problematic, but how can I paint it - in which widget - so that the background is transparent, with drawingArea it doesn’t seem to work. -- best regards H. -- View this message in context: http://www.nabble.com/rotate-image-tp25122912p25123653.html Sent from the Haskell - Haskell-Cafe mailing list archive at Nabble.com.
participants (3)
-
h
-
h.
-
Jeff Heard