[Haskell-cafe] rotate image

h. h._h._h._ at hotmail.com
Fri Aug 28 22:28:53 EDT 2009


Hello,

Thanks for your answers and your time, but I fear that I didn't described
the problem accurately enough.

The background is in the window created with gtk2hs (windowNew). It's just a
fixed layout (fixedNew):
  
  bg <- imageNewFromFile "bg.jpg"
  fixedPut fBox bg (0,0) 

If I now create the new image (with imageNewFromFile "my.png") with it's
alpha values, I can put it somewhere via fixedPut, and the other image is
just covered where it should be, but I can't rotate the image.

So cairo and the surface come into play. This works as well, the surface has
it's alpha values where it should, but a drawingArea created with
drawingAreaNew has a rectangular shape and a color. 
This is the problem.

--
best regards
h.
-- 
View this message in context: http://www.nabble.com/rotate-image-tp25122912p25199462.html
Sent from the Haskell - Haskell-Cafe mailing list archive at Nabble.com.



More information about the Haskell-Cafe mailing list