[Gnome-print] Printing rgba images



Here's a patch for gnome-print-meta.c so that it can differentiate between rgb
and rgba images (a source of much confusion for me all day).

 iain

Index: gnome-print-meta.c
===================================================================
RCS file: /cvs/gnome/gnome-print/libgnomeprint/gnome-print-meta.c,v
retrieving revision 1.17
diff -U2 -r1.17 gnome-print-meta.c
--- gnome-print-meta.c	2000/05/02 18:50:03	1.17
+++ gnome-print-meta.c	2000/06/03 19:35:37
@@ -935,6 +935,8 @@
 	if (bytes_per_pixel == 1)
 		gnome_print_grayimage (dest, buffer, width, height, width);
-	else
+	else if (bytes_per_pixel == 3)
 		gnome_print_rgbimage (dest, buffer, width, height, width * bytes_per_pixel);
+	else if (bytes_per_pixel == 4)
+		gnome_print_rgbaimage (dest, buffer, width, height, width * bytes_per_pixel);
 
 	g_free (buffer);





[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]