[Haskell-cafe] Re: rotate image

H. M. h._h._h._ at hotmail.com
Mon Aug 24 20:36:56 EDT 2009

I want to paint in some widget, but this will be in front of some background, so the bg should be transparent.
At the moment it looks something like this (where it isn't the case):
drawA <- drawingAreaNew
widgetSetSizeRequest drawA 30 30
fixedPut fBox drawA (400,400)
imgAt <- imageSurfaceCreateFromPNG "some.png"
let drawC = do
    dw <- widgetGetDrawWindow drawA
    drawWindowClear dw 
    renderWithDrawable dw $ do
    translate 9 9
    rotate 0.3
    translate (-9) (-9)
    setSourceSurface imgAt 0 0
onExpose drawA (const $ drawC>> return True)

best regards

> From: jefferson.r.heard at gmail.com
> Date: Mon, 24 Aug 2009 19:40:46 -0400
> Subject: Re: [Haskell-cafe] Re: rotate image
> To: h._h._h._ at hotmail.com
> CC: haskell-cafe at haskell.org
> ahh, you want to paint against the desktop, then, yes? That requires
> compositing, and I'm not sure there's a way to do that with Gtk
> directly. Probably easier with X and OpenGL. Needs more of a Gnome
> expert than me.
Hol dir 30 kostenlose Emoticons für deinen Windows Live Messenger

More information about the Haskell-Cafe mailing list