|
HI!
Printer.BeginDoc;
// Get new coords on screen to be sure GetNewPoints;
// Set LEAD's Source rectangle to selected coordinates on screen Lead.SetSrcRect( genX1, genY1, (genX2 - genX1), (genY2 - genY1) );
// Print the document, detecting the printer's width & height, to 'Fit it to page' Lead.Render( Printer.Handle, 1, 1, 0, 0 );
// Reset LEAD's Source rectangle to original image's width & height Lead.SetSrcRect( 0, 0, Lead.BitmapWidth, Lead.BitmapHeight );
Printer.EndDoc;
|