2004-05-18 Vladimir Vukicevic <vladimir@pobox.com
* gnome/Print.custom: Cast .Pixels usage to a (byte *) svn path=/trunk/gtk-sharp/; revision=27619
This commit is contained in:
parent
518ce8f85b
commit
43a82f1204
2 changed files with 10 additions and 4 deletions
|
@ -1,3 +1,7 @@
|
|||
2004-05-18 Vladimir Vukicevic <vladimir@pobox.com
|
||||
|
||||
* gnome/Print.custom: Cast .Pixels usage to a (byte *)
|
||||
|
||||
2004-05-17 Vladimir Vukicevic <vladimir@pobox.com>
|
||||
|
||||
* gdk/Pixbuf.custom: Changed Pixbuf.Pixels to return an IntPtr instead
|
||||
|
|
|
@ -16,10 +16,12 @@
|
|||
public static int Pixbuf (Gnome.PrintContext pc, Gdk.Pixbuf image) {
|
||||
int ret = 0;
|
||||
|
||||
if (image.NChannels == 4)
|
||||
ret = gnome_print_rgbaimage(pc.Handle, image.Pixels, image.Width, image.Height, image.Rowstride);
|
||||
else
|
||||
ret = gnome_print_rgbimage(pc.Handle, image.Pixels, image.Width, image.Height, image.Rowstride);
|
||||
unsafe {
|
||||
if (image.NChannels == 4)
|
||||
ret = gnome_print_rgbaimage(pc.Handle, (byte *) image.Pixels, image.Width, image.Height, image.Rowstride);
|
||||
else
|
||||
ret = gnome_print_rgbimage(pc.Handle, (byte *) image.Pixels, image.Width, image.Height, image.Rowstride);
|
||||
}
|
||||
|
||||
return ret;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue