pixbuf commands
save filename
The key code itself it running well and is bug-free but I haven't yet quite cracked how to complete the fill command. Here's the relevant snippet from my test script:
$pb1 fill red
$pb1 fill #aaabbbcccddd
$pb1 fill green
$pb1 fill blue
$pb1 fill white
$pb1 fill black
$pb1 fill #fff000000fff
$pb1 fill #000fff000fff
$pb1 fill green
$pb1 fill blue
$pb1 fill white
$pb1 fill black
$pb1 fill #fff000000fff
$pb1 fill #000fff000fff
All the named colours are working well, ie not causing errors, but the resultant saved files are not of the right colours. It must be something to do with converting colours to a guint32 number. Tadej at Gtk Forum recommends others to use Cairo to complete such drawing operations, perhaps that's the route I might eventually take. Peter Baum produced a few support functions for colour manipulaiton which are found in the parseoptions.c module. These, however, don't handle the guint32 format. I've had enough of it for today and so will leave it for the next time.
No comments:
Post a Comment