[cairo] copy and manipulate background

gurnett at telia.com gurnett at telia.com
Fri Dec 3 11:22:47 PST 2010


Sorry forgot to mention it's for windows.

I've got to the stage where I can copy and manipulate the desktop. The trick 
now seems to be stopping redraws ruining the effect before the modal dialog 
is closed. I've had some succes by using intercepting wm_paint messages in 
the dialog. So now it's no longer a cairo issue, but a windows programming 
issue.

Michael

----- Original Message ----- 
From: "Alexander Shulgin" <alex.shulgin at gmail.com>
To: "Michael Gurnett" <gurnett at macbat.com>
Cc: <cairo at cairographics.org>
Sent: Friday, December 03, 2010 8:12 PM
Subject: Re: [cairo] copy and manipulate background


> On Thu, Dec 2, 2010 at 16:18, Michael Gurnett <gurnett at macbat.com> wrote:
>> I was wondering if there was a simple way to copy the entire visible
>> background to an image_surface.
>>
>> My basic idea was before I show a modal dialog was to take a "screen 
>> grab"
>> of the entire screen, manipulate this (gray scale, blur, darken etc) 
>> paint
>> it and then show the dialog. Once the dialog has been closed everthing 
>> needs
>> to return to its previous state.
>>
>> Any ideas are appreciated
>
> On which platform: Windows, X11, Mac OS X?
> --
> cairo mailing list
> cairo at cairographics.org
> http://lists.cairographics.org/mailman/listinfo/cairo 



More information about the cairo mailing list