RE: How can I get the resolution of printer?

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

 



From: gtk-list-bounces@xxxxxxxxx [mailto:gtk-list-bounces@xxxxxxxxx] On Behalf Of yanghaitao
Sent: Friday, June 19, 2009 1:36 AM

Hi, All:
    I want to create a customized printing dialog.  Now I can enumerate all printers in my system, but I don't know how can I get the resolution list of specific printer?
    Thanks advanced!

Alfred Young

 

 

If it is inside your print dialog:

 

   dpi_x = gtk_print_context_get_dpi_x(context);

    dpi_y = gtk_print_context_get_dpi_y(context);

 

The print context is passed to your “begin-print” signal handler.

 

Ian

_______________________________________________
gtk-list mailing list
gtk-list@xxxxxxxxx
http://mail.gnome.org/mailman/listinfo/gtk-list

[Index of Archives]     [Touch Screen Library]     [GIMP Users]     [Gnome]     [KDE]     [Yosemite News]     [Steve's Art]

  Powered by Linux