Hey,
I would like to convert a png file (in ARGB format) to a byte array. And a byte array back to a png file.
Example:
A png file with height 10 and width 15 in ARGB format would be a byte array with 10*15*4 bytes. The alpha value of the first pixel would be at index 0, the Red value at index 1, etc...
At the moment I have a program in C# that can do this, by using a pointer to the pixels of the Gdk.Pixbuf from Gtk# library. But the problem is that this requires at least to install gtk runtime environment.
Thanks in advance,
Memorice
I would like to convert a png file (in ARGB format) to a byte array. And a byte array back to a png file.
Example:
A png file with height 10 and width 15 in ARGB format would be a byte array with 10*15*4 bytes. The alpha value of the first pixel would be at index 0, the Red value at index 1, etc...
At the moment I have a program in C# that can do this, by using a pointer to the pixels of the Gdk.Pixbuf from Gtk# library. But the problem is that this requires at least to install gtk runtime environment.
Thanks in advance,
Memorice