Re: cairo functions too use instead of gdk ones

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Am Thu, 23 Sep 2010 21:11:57 +0200
schrieb Tadej BorovÅak <tadeboro@xxxxxxxxx>:

> Hi.
> 
> Replacements would probably look like this:
> 
> > gdk_gc_new
> 
> cairo_create() or gdk_cairo_create() if you're using GTK+
> 
> > gdk_gc_set_foreground
> 
> cairo_set_source_rgb() or gdk_cairo_set_source_color()
> 
> > gdk_pixmap_create_from_xpm
> 
> This last one is a bit tricky, since you should not use GdkPixmaps
> anymore. For equivalent result, you'll need to
>  - create new cairo surface that will serve as a replacement for GdkPixmap
>  - load XPM into GdkPixbuf
>  - paint that pixbuf onto your new surface

Well it's an pretty old app. From devhelp I saw that PNGs should be easier.

Thanks for your help.

> Tadej

_______________________________________________
gtk-list mailing list
gtk-list@xxxxxxxxx
http://mail.gnome.org/mailman/listinfo/gtk-list



[Index of Archives]     [Touch Screen Library]     [GIMP Users]     [Gnome]     [KDE]     [Yosemite News]     [Steve's Art]

  Powered by Linux