Printer()->BeginDoc();
int x = Printer()->PageWidth; // długość strony.
int y = Printer()->PageHeight; // wysokość strony.
int width;
int height;
if((x / Image->Width) < (y / Image->Height))
{
width = Image->Width * ((x / Image->Width) + 0.5);
height = Image->Height * ((x / Image->Width) + 0.5);
}
else
{
height = Image->Height * ((y / Image->Height) + 0.5);
width = Image->Width * ((y / Image->Height) + 0.5);
}
Printer()->Canvas->CopyRect(Rect(10, 10, width, height), Image->Canvas, Rect(0, 0, Image->Width, Image->Height));
Printer()->EndDoc();
i otoż drukuje mi tylko wtedy kiedy załaduje plik bmp do TImage a ja chce po otworzeniu programu była możliwość drukowanie tego co namaluje nie wiem juz chyba 10 sposobów próbowałem




