experiment of the day:
git.sr.ht/~fabrixxm/zint-vapi
Vala bindings for Zint barcode generator library , with a simple Gtk UI to generate barcodes
like this
Sylke Vicious reshared this.
experiment of the day:
git.sr.ht/~fabrixxm/zint-vapi
Vala bindings for Zint barcode generator library , with a simple Gtk UI to generate barcodes
like this
Sylke Vicious reshared this.
Sebastian "spaetz" Spaeth
in reply to Fabio • • •How did you know I need this! ?
My meagre attemt is here:
gitlab.com/sspaeth/speedticket…
Sebastian "spaetz" Spaeth
in reply to Sebastian "spaetz" Spaeth • • •and also, can it get a Gtk.Image somehow? I was able to a) either save it to a file or retrieve an in-memory bitmap which could not be easily squeezed into a Gtk.Image.
Going to check it out.
Fabio
in reply to Sebastian "spaetz" Spaeth • •You can load the bitmap into a Gdk.PixBuf, then you can do whatever.
git.sr.ht/~fabrixxm/zint-vapi/…
I wanted to have the
bitmap
field asuint8[]
, mostly because looks vala-y and because it's what is inGdk.PixBuf.from_data()
's signature).I found that it needs a length to works with
Gdk.PixBuf.from_data()
, so I added theget_bitmap()
method to set the length.. It works but I don't know if it's the correct solution... there so much things I'm not sure about and docs are useful only up to a point...(as a side node, the
zint.h
header I have on disk has abitmap_byte_length
field which would be so good to use as length value forbitmap
(setting it directly in field's annotation in vapi) but looks like is not used and docs doesn't mention it.....)Sebastian "spaetz" Spaeth
in reply to Fabio • • •like this
Fabio e clacke: exhausted pixie dream boy 🇸🇪🇭🇰💙💛 like this.
Fabio
Unknown parent • •