[Gtk-sharp-list] Print on X = 2cm Y = 5.5cm ???

Wolfgang Mauer W.Mauer at top-soft.info
Sun Jan 8 14:34:22 EST 2006


Hi all,
i want to print some text with

Gnome.Print.Moveto (Context, x, y);
Gnome.Print.Show (Context, text);

how to convert (x/y) to cm depend on the Printer an Resolution ?
i found this

public double ConvertToPixel (double cm)
{
	return cm * (75.0 / 2.54);
}

is this the right way ?


Regards
Wolfgang


More information about the Gtk-sharp-list mailing list