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

image & gnome-print



hai all
	Here is my attempt to print image in gnome-print .

>>>>
	pixbuf = gdk_pixbuf_new_from_xpm_data(jim2);
//	pixbuf = gdk_pixbuf_new_from_file("gnome-calendar.png",NULL);
	g_print("value%shhh\n",pixbuf);

	gnome_print_gsave (pc);
	gnome_print_moveto (pc, 200, 200);
	gnome_print_scale (pc,gdk_pixbuf_get_width
		(pixbuf),gdk_pixbuf_get_height(pixbuf));


	data = gdk_pixbuf_get_pixels(pixbuf);
	gnome_print_rgbimage (pc,data,gdk_pixbuf_get_width (pixbuf),
			gdk_pixbuf_get_height(pixbuf),
			gdk_pixbuf_get_rowstride(pixbuf));

	gnome_print_grestore (pc);
<<<<<

	Commented a line, used to inlude a file. Both din't wok.
Please tell me where i went wrong.
I will be happy to get it from you people.
				Thanks
					jimson (jimsonchacko@hotmail.com)


_________________________________________________________________
MSN 8 helps eliminate e-mail viruses. Get 2 months FREE* 
http://join.msn.com/?page=features/virus




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