[SOLVED] WPF Printing in milimeters
-
Hello I am using DrawingContext to draw text, and then i print visual throu PrintDialog. I want to convert input from milimeters. I do not know formula and on google i only found a few pieces, but i realy want to be printer independet. I found on a Some page 1 mm = 3.779528 px Is this printer independet. I am writing an application that will print on normal A4 printer or on 60mm x Reciept type printers. My app is already printing, but some values i want to be in pixel and some in mm. Thank you Edit: Upon remote testing i noticed that no matter if Printer is 600DPI or 300dpi. I can simply ignore these values
-
Hello I am using DrawingContext to draw text, and then i print visual throu PrintDialog. I want to convert input from milimeters. I do not know formula and on google i only found a few pieces, but i realy want to be printer independet. I found on a Some page 1 mm = 3.779528 px Is this printer independet. I am writing an application that will print on normal A4 printer or on 60mm x Reciept type printers. My app is already printing, but some values i want to be in pixel and some in mm. Thank you Edit: Upon remote testing i noticed that no matter if Printer is 600DPI or 300dpi. I can simply ignore these values
Saksida Bojan wrote:
1 mm = 3.779528 px
WPF uses Device Independent Pixels, you may have a hard-time with this asumption
Beauty cannot be defined by abscissas and ordinates; neither are circles and ellipses created by their geometrical formulas.
-
Saksida Bojan wrote:
1 mm = 3.779528 px
WPF uses Device Independent Pixels, you may have a hard-time with this asumption
Beauty cannot be defined by abscissas and ordinates; neither are circles and ellipses created by their geometrical formulas.
I Know WPF is DPI indipented when putting it on screen. Does that extend to Printing? I am using Drawing Context and all values are pixel based. My Printer has resolution 600dpi. But other printer that is currently not awaible is STAR SP 200 Series. It is a 300DPI Matrix type printer.