Board index » cppbuilder » Printing Jpegs
aberen
![]() CBuilder Developer |
Tue, 20 Jul 2004 23:53:15 GMT
Printing Jpegs
I am trying to print a jpeg using Borland C++ Builder 4.0. It seems to
work however the image comes out at about 30% of the original resolution and size. I tried to use stretch draw but the image is still in low resolution. I can't figure out the problem. Can someone please, please help. Here is the code I use: TClipboard *pCB = Clipboard(); Graphics::TBitmap *pBitmap = new Graphics::TBitmap(); pBitmap->LoadFromClipboardFormat(CF_BITMAP, TPrinter *Prntr = Printer(); Prntr->Canvas->Draw((Prntr->PageWidth - largeImage->Width)/2, Prntr->EndDoc(); delete pBitmap; Thanks Adam Berent |