[prev in list] [next in list] [prev in thread] [next in thread] 

List:       gtk-app-devel
Subject:    Re: Dimensions in pixels of a draw Area to obtain a plot on a A4 paper
From:       Yuri Khan <yuri.v.khan () gmail ! com>
Date:       2018-04-22 6:05:59
Message-ID: CAP_d_8UnYgcMXf6pYGYn7ZMsLTLZ5br5QuH08hMQ6xebHm3L+w () mail ! gmail ! com
[Download RAW message or body]

On Sat, Apr 21, 2018 at 3:17 PM, arkkimede <arkkimede@gmail.com> wrote:
> Thanks to Nicola and Yuri for the suggestions!
> Let me summarize:
>
> 1. Use pdf instead of png
> 2. Define the dimension of pdf in points;
>
> The last open point is: how to get a "preview" on the screen (this time in
> pixels) to decide whether to print or not the plot on pdf?

As far as I can tell, GtkPrintOperation and GtkPrintOperationPreview
do that for you automatically.

> In other words: there is a relationship between points and pixels?

Yes, there is. It's complicated and Gtk+/Gdk are supposed to shield
you from having to deal with it.
_______________________________________________
gtk-app-devel-list mailing list
gtk-app-devel-list@gnome.org
https://mail.gnome.org/mailman/listinfo/gtk-app-devel-list
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic