home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #26 / NN_1992_26.iso / spool / comp / os / mswindo / programm / misc / 3280 < prev    next >
Encoding:
Text File  |  1992-11-08  |  1.3 KB  |  33 lines

  1. Newsgroups: comp.os.ms-windows.programmer.misc
  2. Path: sparky!uunet!charon.amdahl.com!pacbell.com!sgiblab!sdd.hp.com!scd.hp.com!hpscdm!hplextra!rigel!yefchak
  3. From: yefchak@hplabsz.hpl.hp.com (George Yefchak)
  4. Subject: HELP Bitmap Printing in VB
  5. Message-ID: <1992Nov6.225227.24710@hplabsz.hpl.hp.com>
  6. Date: Fri, 6 Nov 1992 22:52:27 GMT
  7. Organization: Hewlett-Packard Laboratories Palo Alto,CA
  8. X-Newsreader: TIN [version 1.1.4 PL6]
  9. Keywords: Visual Basic
  10. Lines: 21
  11.  
  12. I have created a 256-color image using API calls from Visual
  13. Basic, and I've gotten it to appear on my form by calling
  14. BitBlt.  But I have no idea how to get it to print.  Basically,
  15. 255 of the colors come out black, and one comes out white.
  16.  
  17. How can I print this as a grey-scale image?  (Even 16 shades
  18. would be OK.)
  19.  
  20. Also, I'd like to copy my 256-color palette along with the image
  21. to the clipboard.  (I'm using plain-old device-dependent bitmaps.
  22. Do I need to use DIB's?)
  23.  
  24. Thanks!
  25.  
  26. ***********************************************************************
  27. * George Yefchak                          Hewlett-Packard Laboratories*
  28. * Internet: yefchak@.hpl.hp.com           P.O.Box 10350               *
  29. * CompuServe: 73607,1625                  Palo Alto, CA 94303-0867    *
  30. *                                         415-857-4793                *
  31. ***********************************************************************
  32.  
  33.