Re: Rgba to pixbuf
- From: Mario Kemper <mario kemper googlemail com>
- To: Kevin Ryde <user42 zip com au>
- Cc: "gtk-perl-list gnome org" <gtk-perl-list gnome org>
- Subject: Re: Rgba to pixbuf
- Date: Tue, 15 Feb 2011 12:57:05 +0100
Thanks, Kevin. I tried to concatenate the strings before, but I did not
change the rowstride parameter. It is working great now.
Am Dienstag, den 15.02.2011, 08:52 +1100 schrieb Kevin Ryde:
Mario Kemper <mario kemper googlemail com> writes:
Is there any way to 'pack' all rgba values at once and use this packed
scalar to create the final pixbuf?
Yes, just concatenate the $data strings. The pixels of the first row,
then the pixels of the second row, etc. The "rowstride" thing is
4*$width, being how many bytes there are in each row.
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]