Hello
I have drew on Printer.Canvas,I want to render it in a bitmap file.
I have assigned it to a TCanvas.
then I use BitBlt API Function to copy it in a TBitmap.
but it doesn't work?!!!
how can I do this?
Canvas doesn't allow drawing
Var
Bitmap: TImage;
X, Y: Smallint;
begin
//Printer.PrinterIndex:= 0;//Select Printer
Printer.BeginDoc;
Bitmap:= TImage.Create(Self);
Bitmap.Picture.LoadFromFile('c:\test.bmp');
try
Printer.Canvas.Draw(X, Y, Bitmap.Picture.Graphic);
finally
Printer.EndDoc;
end;
end;
Users browsing this forum: Bing [Bot] and 14 guests