DelphiFAQ Home Search:

How to print an image (JPEG, BMP.. any)


comments5 comments. Current rating: 3 stars (1 votes). Leave comments and/ or rate it.


How can I print a TGraphic, especially an image?


You need to use the global Printer instance from unit Printers - see the code below:


procedure PrintBitmap(aGraphic: TGraphic; Title: string); 
begin { PrintBitmap } 
  Printer.Title := Title; 
  Printer.Canvas.Draw(0, 0, aGraphic); 
end; { PrintBitmap } 
You don't like the formatting? Check out SourceCoder then!


2006-02-10, 07:20:21
anonymous from India  
what format the bit image is printing
can i dble to retrive the data from the hex codes of that image
2012-05-16, 06:24:14 from Delhi, India  
I have a JPEG file which I am able to print . However when I send this image to someone who needs this, he is not able to print it. Could you please help.

Sunila Singh
2012-05-16, 17:22:50
OJAS from United States  
.bmp format can be opened in paint or photoshop


Sunil, you may get spammed if you post your email address in public domains. Safer to use something like Delhi Daredevil
2018-01-20, 22:40:38
Francisco from Sweden  
Excellent site you have here but I was wanting to know if you knew of any forums that cover the same topics talked about here?
I'd really love to be a part of community where I can get feed-back from other knowledgeable individuals that share the same interest.
If you have any recommendations, please let me know. Thanks!
2018-05-10, 03:44:51
anonymous from Korea (R)  



NEW: Optional: Register   Login
Email address (not necessary):

Rate as
Hide my email when showing my comment.
Please notify me once a day about new comments on this topic.
Please provide a valid email address if you select this option, or post under a registered account.

Show city and country
Show country only
Hide my location
You can mark text as 'quoted' by putting [quote] .. [/quote] around it.
Please type in the code:

Please do not post inappropriate pictures. Inappropriate pictures include pictures of minors and nudity.
The owner of this web site reserves the right to delete such material.

photo Add a picture: