Software Archive
Read-only legacy content
17061 Discussions

printing a bitmap

Intel_C_Intel
Employee
463 Views
Hi there,
I would like to send a bitmap stored either in memory or on a file to a printer, i.e. I do NOT want to print the display using WINPRINT.
Before starting on the rather involved documentation on how to do this I would like to know if anyone already has worked this out.
Ideally I would be extremely happy to find a modified version of the much discussed "Fortran_WinPrint" sample, but for bitmaps rather than text files.

Hoping for the best
Lars
lars.engstrom@fysik.lu.se
0 Kudos
1 Reply
Intel_C_Intel
Employee
463 Views
Solved!

Since I started this thread I feel I should also end it.

I did manage to create a subroutine that works just like WINPRINT, but:
1. allows you to select a rectangular part of the screen.
2. changes a color image to monochrome, allowing you to select which color will be mapped to white (all other black), supporting 16-, 24 and 32-bit color settings of the computer.
3. prints the monochrome image significantly faster than WINPRINT.

If this could be of interest to anyone, please feel free to e-mail me

lars.engstrom@fysik.lu.se
0 Kudos
Reply