W
wtb
Unregistered / Unconfirmed
GUEST, unregistred user!
var
ScaleX, ScaleY: Integer;
R: TRect;
begin
if printdialog1.Execute then
begin
Printer.begin
Doc;
with Printerdo
try
ScaleX := GetDeviceCaps(Handle, logPixelsX) div
PixelsPerInch;
ScaleY := GetDeviceCaps(Handle, logPixelsY) div
PixelsPerInch;
//temp := GetDeviceCaps(Handle, logPixelsX);
R := Rect(0, 0, Image3.Picture.Width * ScaleX,
Image3.Picture.Height * ScaleY);
Canvas.StretchDraw(R, Image3.Picture.Bitmap);
finally
EndDoc;
end;
end;
ScaleX, ScaleY: Integer;
R: TRect;
begin
if printdialog1.Execute then
begin
Printer.begin
Doc;
with Printerdo
try
ScaleX := GetDeviceCaps(Handle, logPixelsX) div
PixelsPerInch;
ScaleY := GetDeviceCaps(Handle, logPixelsY) div
PixelsPerInch;
//temp := GetDeviceCaps(Handle, logPixelsX);
R := Rect(0, 0, Image3.Picture.Width * ScaleX,
Image3.Picture.Height * ScaleY);
Canvas.StretchDraw(R, Image3.Picture.Bitmap);
finally
EndDoc;
end;
end;