Re: wipe effect in a widget
- From: Mohith Manoj <mohithmanoj gmail com>
- To: nishit sharma <sharmafrequent gmail com>
- Cc: gtk-list gnome org
- Subject: Re: wipe effect in a widget
- Date: Wed, 4 Mar 2009 14:00:00 +0530
The gtk-demo application is having the wipe style used in "Image" section as progressive load. Alternatively if you want to get your hands dirty...
you can
- Load the image into a pixbuf
- use a timer to call a draw function
- inside the draw function
- create a cairo context
- use Gdk::Cairo::set_source_pixbuf to select the pixbuf with image as the source of this new cairo context
- progressively draw rectangle on the target drawing area
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]