unofficial mirror of guile-user@gnu.org 
 help / color / mirror / Atom feed
* gdk-pixbuf-add-alpha
@ 2015-12-01 19:15 Tomas By
  0 siblings, 0 replies; only message in thread
From: Tomas By @ 2015-12-01 19:15 UTC (permalink / raw)
  To: guile-user

Hi all,

I am trying to change a colour to transparent by doing this:

   (gdk-pixbuf-add-alpha img #t (integer->char r) (integer->char g) 
(integer->char b))

(Doing `interger->char' seems a bit weird but passing ints causes 
errors.)

However, the image is not changed (I write it out using 
gdk-pixbuf-save-to-port).

Doing it on the command line works fine:

   convert old.png -transparent 'rgb(R,G,B)' new.png

so I am pretty sure there is no problem/misunderstanding regarding the 
file and the colours.

Anybody have any ideas how to do this in Guile?

/Tomas




^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2015-12-01 19:15 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-12-01 19:15 gdk-pixbuf-add-alpha Tomas By

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).