search for: log_units_factor

Displaying 1 result from an estimated 1 matches for "log_units_factor".

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.
...o pass logical units to DrawLine. </span><span class="cx"> </span><span class="cx"> # Draw 50 mm by 50 mm L shape </span><del>- logUnitsFactor = (ppiPrinterX/(scale*25.4)) - logUnits = (50*logUnitsFactor) </del><ins>+ log_units_factor = (ppi_printer_x/(scale*25.4)) + log_units = (50*log_units_factor) </ins><span class="cx"> dc.set_pen(Wx::BLACK_PEN) </span><del>- dc.draw_line(50, 250, (50.0 + logUnits).to_i, 250) - dc.draw_line(50, 250, 50, (250.0 + logUnits).to_i) </del><i...