home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Programming Tool Box
/
SIMS_2.iso
/
code
/
print
/
psout
/
psread.txt
< prev
Wrap
Text File
|
1992-03-02
|
1KB
|
27 lines
This little program will illustrate the method of printing bitmap files
to the default printer under Windows 3.0 using Visual Basic. It has been
tested on PostScript and HP LaserJet printers only at this point. If you
run the executable file and click on the "Print This Image" button you will
get a printout of the bitmap displayed. The program is hard coded to print
this bitmap only. The code as written will not print a bitmap larger than
32k bytes. This is calculated as (Height*Width)/2 for 16-color and
(Height*Width)/8 for monochrome images. VB provides no support for palette
manipulation and therefore neither displays nor prints 256-color images.
If you require support for images ranging from monochrome to 24-bit color
in PCX or BMP formats then I recommend the custom control available from
Crescent Software. It also provides support for horizontal and vertical
scrollbars, mouse events and full printing support of images. For further
information contact Don Malin at (203) 438-5300.
I am releasing this program into the world even though it is not that clean.
It illustrates a method from printing bitmaps within VB and is not guaranteed
in any way for anything. If you have questions I will attempt to answer them
as time permits. I can be contacted on CIS at 70471,137.
Stephen Cramp
C/Systems
13584 Kennedy Rd. N.,
Inglewood, Ont
CANADA L0N 1K0