search for: ppi_printer_x

Displaying 2 results from an estimated 2 matches for "ppi_printer_x".

2007 Mar 06
0
[876] trunk/wxruby2/samples/printing/printing.rb: Fix a crasher if scale = 0; fix variable rename
...x"> # but in fact is too small for some reason. This is a detail that will </span><span class="cx"> # need to be addressed at some point but can be fudged for the </span><span class="cx"> # moment. </span><del>- scale = (ppi_printer_x/ppi_screen_x) </del><ins>+ scale = ( ppi_printer_x.to_f / ppi_screen_x.to_f ) </ins><span class="cx"> </span><span class="cx"> # Now we have to check in case our real page size is reduced </span><span class="cx">...
2006 Oct 17
0
[680] trunk/wxruby2/samples/printing/printing.rb: Cleaned up to use the Ruby naming convention, added #! line, now uses Wx default ID''s in standard menu items.
...lt;/span><span class="cx"> # Get the logical pixels per inch of screen and printer </span><del>- ppiScreenX, ppiScreenY = get_ppi_screen - ppiPrinterX, ppiPrinterY = get_ppi_printer </del><ins>+ ppi_screen_x, ppi_screen_y = get_ppi_screen + ppi_printer_x, ppi_printer_y = get_ppi_printer </ins><span class="cx"> </span><span class="cx"> # This scales the DC so that the printout roughly represents the </span><span class="cx"> # the screen scaling. The text point size _should_ b...