Board index » cppbuilder » Device independent bitmap + printing of a bitmap

Device independent bitmap + printing of a bitmap

I whant to print out a bitmap and need a way to do this. I have heard about
something called a "device independent bitmap" and would be realy grateful
for any info on this matter.
 

Re:Device independent bitmap + printing of a bitmap


Hi James,

Quote
> I whant to print out a bitmap and need a way to do this. I have heard about
> something called a "device independent bitmap" and would be realy grateful
> for any info on this matter.

The best examples can be found from MSDN, do a search for "DIB".  Also
have a look at specific code examples from:
[http://www.codeguru.com/bitmap/index.shtml].  Although it is MFC based,
the foundations are solid, and most of the examples can be easily
converted.  If you just want to print a bitmap you can download
TPrintDIB from the "Graphics" section of [http:/bcbcaq.freeservers.com]
in the article titled "Printing Graphics."

Good luck.

->Damon
-------------------------------------
http://bcbcaq.freeservers.com
Answers to <Commonly Asked Questions>

Re:Device independent bitmap + printing of a bitmap


James Christian Reeve Moller <Chistian.Mol...@safran.no> wrote in message
news:7idjah$s2j4@forums.borland.com...

Quote
> I whant to print out a bitmap and need a way to do this. I have heard about
> something called a "device independent bitmap" and would be realy grateful
> for any info on this matter.

Use StretchDIBits.  For an example (Delphi), look at Item1, "How to I print a
bitmap?" at
http://www.efg2.com/lab/library/Delphi/Printing

efg
_________________________________
efg's Computer Lab:  http://www.efg2.com/lab
Delphi Books:  http://www.efg2.com/lab/TechBooks/Delphi.htm

Earl F. Glynn     E-Mail:  EarlGl...@att.net
Overland Park, KS  USA

Other Threads