![]() |
|
Printing a bitmap in Win32 |
Raf256
Member #3,501
May 2003
|
HI, How can I use shellexecute to alternatively print a document by saving it into a .bmp first? Is it possible to get metrics of printer page / etc - to have image fit-to-screen? How to get/set the DPI of image (and set paper type to A4 page)? Thanks in advice! (Btw I need answer quickly, so I would be greatefull even for any clue). |
23yrold3yrold
Member #1,134
March 2001
![]() |
You could convert the BITMAP* to an HBITMAP using the Allegro function. I assume printing an HBITMAP is fairly simple, though I haven't had occasion to try it ... -- |
ReyBrujo
Moderator
January 2001
![]() |
No, it is rather tediously. You need to setup a lot of things. Even with MFC is a pain in the a**. I suggest you to save the bitmap on hard disk, and let the user print it later. -- |
A J
Member #3,025
December 2002
![]() |
if only that "Print Screen" button did what it was supposed to. ___________________________ |
Nick Fisk
Member #2,197
April 2002
![]() |
Surely couldn't you just save the screen as a bitmap and then call the system command to print a bitmap. Eg in windows:- |
gnolam
Member #2,030
March 2002
![]() |
A J said: and can anyone tell my what a Scroll Lock key does ?
I assume you're just trolling as usual, but anyway... -- |
Raf256
Member #3,501
May 2003
|
My application is used to encode encrypted images after giving a password, and allows to view image. It also should print the image. I know that there are many ways to steal image anyway - printscreen for example, or scanning printed image |
|