Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
CreateCompatibleBitMap and Win2000
Message
From
20/12/2001 09:49:31
 
 
To
20/12/2001 09:07:05
Calvin Smith
Wayne Reaves Computer Systems
Macon, Georgia, United States
General information
Forum:
Visual FoxPro
Category:
Windows API functions
Miscellaneous
Thread ID:
00596108
Message ID:
00596745
Views:
23
>Ed,
>Thanks for your attention to this problem. I have a home grown solution to this but it has real problems printing grids. The situation is this: most of my users have only dot matrix printers. I need them to be able to do screen prints and fax them to me from time to time. What I need on the screen print is just the labels and data on the screen - in black and white without any shading from screen colors etc. In your reply you mention greyscale conversion. Will this result in just a black and white result or will it print out a greyscale? Anything in greyscale from a dot matrix printer will almost certainly be illegible on a fax. Thanks for your help.

You can create simple linetone translation; it's normally set up in the Printer dialog for Windows. If you're going to seriously mess with this, I'd pick up Ezzell's book; the problem is that BitBlt does not in and of itself perform color to monochrome conversions. My copy of his book discusses the issue of printing bitmaps on a variety of print devices starting somewhere around page 1051. He spends two chapters discussing the nature of bitmaps and metafiles, and another couple on the OnDraw method mechanisms required for rendering bitmaps and metafiles. His C++ code is pretty clear, but relies on MFC, so you may well want to write a DLL or ActiveX control to handle the issue rather than kludging around trying to creeb code from the example on news2news; it's a useful resource, but I don't happen to think his examples are well-documented or discuss the API issues involved in adequate detail, so using it may be like handing a kid a loaded gun - it's safe most of the time, but the consequences of using it without a good understanding of the mechanics can be dangerous.
EMail: EdR@edrauh.com
"See, the sun is going down..."
"No, the horizon is moving up!"
- Firesign Theater


NT and Win2K FAQ .. cWashington WSH/ADSI/WMI site
MS WSH site ........... WSH FAQ Site
Wrox Press .............. Win32 Scripting Journal
eSolutions Services, LLC

The Surgeon General has determined that prolonged exposure to the Windows Script Host may be addictive to laboratory mice and codemonkeys
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform