Re: Dimensions in pixels of a draw Area to obtain a plot on a A4 paper
- From: Yuri Khan <yuri v khan gmail com>
- To: arkkimede <arkkimede gmail com>
- Cc: gtk-app-devel-list list <gtk-app-devel-list gnome org>
- Subject: Re: Dimensions in pixels of a draw Area to obtain a plot on a A4 paper
- Date: Sun, 22 Apr 2018 13:05:59 +0700
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.
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]