Re: [Chicken-users] Imlib2 Egg Question
On Fri, Jul 03, 2009 at 11:02:42AM +0200, Peter Bex wrote: > Currently, I don't have any plans for extending the imlib2 egg. However, > I do think exposing the ugly guts of imlib's context stuff is a good idea. D'oh! Of course, that should be "I *don't* think exposing the ugly guts..." Cheers, Peter -- http://sjamaan.ath.cx -- "The process of preparing programs for a digital computer is especially attractive, not only because it can be economically and scientifically rewarding, but also because it can be an aesthetic experience much like composing poetry or music." -- Donald Knuth pgpiapA9N9eSN.pgp Description: PGP signature ___ Chicken-users mailing list Chicken-users@nongnu.org http://lists.nongnu.org/mailman/listinfo/chicken-users
Re: [Chicken-users] Imlib2 Egg Question
On Thu, Jul 02, 2009 at 07:28:48PM -0400, bill wrote: > Hi, > > Quick question - is there any plan to add the imlib-context-set calls to > the imlib2 egg? > > Or in other words, how do you connect the image to a X-window? Currently, I don't have any plans for extending the imlib2 egg. However, I do think exposing the ugly guts of imlib's context stuff is a good idea. I'm not familiar with the imlib2 API X window stuff. I see there's an example of imlib_context_set_drawable but there's no API docs for it... If you really need this, please consider submitting a patch to do this. You can send it to me directly and we can discuss it. I'd like to add to this that I've been told by the enlightenment people on IRC that imlib2 and epeg are now deprecated in favor of evas, so if you intend to do very heavy hacking on the imlib2 egg, you probably want to consider writing an egg for evas, instead. I intend to do this some day in the future when I'm done hacking on all the HTTP crap ;) Cheers, Peter -- http://sjamaan.ath.cx -- "The process of preparing programs for a digital computer is especially attractive, not only because it can be economically and scientifically rewarding, but also because it can be an aesthetic experience much like composing poetry or music." -- Donald Knuth pgp1Crqwp8fh1.pgp Description: PGP signature ___ Chicken-users mailing list Chicken-users@nongnu.org http://lists.nongnu.org/mailman/listinfo/chicken-users
[Chicken-users] Imlib2 Egg Question
Hi, Quick question - is there any plan to add the imlib-context-set calls to the imlib2 egg? Or in other words, how do you connect the image to a X-window? Bill ___ Chicken-users mailing list Chicken-users@nongnu.org http://lists.nongnu.org/mailman/listinfo/chicken-users
Re: [Chicken-users] Imlib2 egg question
On Wed, Jan 30, 2008 at 09:40:06AM -0500, William Ramsay wrote: > Hi, > > I'm using the Imlib2.egg to save icons with a small drawing program I'm > writing. If I create an icon that is completely filled with color, > everything works fine. But if I only draw pixels in part of the icon, > leaving the rest transparent, the icon is saved completely messed up. > What do I need to do to tell the imlib image that I want to have part of > it transparent?I thought it was a transparent image that was created > with imlib:create. Forgot attachment -- http://sjamaan.ath.cx -- "The process of preparing programs for a digital computer is especially attractive, not only because it can be economically and scientifically rewarding, but also because it can be an aesthetic experience much like composing poetry or music." -- Donald Knuth Index: imlib2.scm === --- imlib2.scm (revision 7765) +++ imlib2.scm (working copy) @@ -175,7 +175,7 @@ (imlib-err 'imlib:create "Could not create new image" (list width height)) (begin (imlib:alpha-set! img #t) - (imlib:fill-rectangle img (imlib:color/rgba 0 0 0 0) 0 0 width height) + (imlib:fill-rectangle img (imlib:color/rgba 0 0 0 0) 0 0 (sub1 width) (sub1 height)) (set-finalizer! img imlib:collect)) (define (imlib:collect img) pgp7dE3Xra5Ja.pgp Description: PGP signature ___ Chicken-users mailing list Chicken-users@nongnu.org http://lists.nongnu.org/mailman/listinfo/chicken-users
Re: [Chicken-users] Imlib2 egg question
On Wed, Jan 30, 2008 at 09:40:06AM -0500, William Ramsay wrote: > Hi, > > I'm using the Imlib2.egg to save icons with a small drawing program I'm > writing. If I create an icon that is completely filled with color, > everything works fine. But if I only draw pixels in part of the icon, > leaving the rest transparent, the icon is saved completely messed up. > What do I need to do to tell the imlib image that I want to have part of > it transparent?I thought it was a transparent image that was created > with imlib:create. That's what it should do. Could you try the attached patch and let me know if it works? I'm at work right now, so I haven't been able to test it. Cheers, Peter -- http://sjamaan.ath.cx -- "The process of preparing programs for a digital computer is especially attractive, not only because it can be economically and scientifically rewarding, but also because it can be an aesthetic experience much like composing poetry or music." -- Donald Knuth pgpSY0IOTT0rq.pgp Description: PGP signature ___ Chicken-users mailing list Chicken-users@nongnu.org http://lists.nongnu.org/mailman/listinfo/chicken-users
[Chicken-users] Imlib2 egg question
Hi, I'm using the Imlib2.egg to save icons with a small drawing program I'm writing. If I create an icon that is completely filled with color, everything works fine. But if I only draw pixels in part of the icon, leaving the rest transparent, the icon is saved completely messed up. What do I need to do to tell the imlib image that I want to have part of it transparent?I thought it was a transparent image that was created with imlib:create. Bill ___ Chicken-users mailing list Chicken-users@nongnu.org http://lists.nongnu.org/mailman/listinfo/chicken-users