home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #18 / NN_1992_18.iso / spool / comp / os / mswindo / programm / misc / 1411 < prev    next >
Encoding:
Internet Message Format  |  1992-08-20  |  2.3 KB

  1. Path: sparky!uunet!van-bc!eosvcr!aew
  2. Newsgroups: comp.os.ms-windows.programmer.misc
  3. Subject: Re: StretchBlt() and colors...
  4. Keywords: StretchBlt, SelectPalette, AnimatePalette
  5. From: aew@eosvcr.wimsey.bc.ca (Alan Walford)
  6. Distribution: world
  7. Message-ID: <77gRPB1w162w@eosvcr.wimsey.bc.ca>
  8. References: <1992Aug18.165359.13365@ugle.unit.no>
  9. Date: Wed, 19 Aug 92 09:05:05 PDT
  10. Organization: Eos Systems Inc, Vancouver, B.C., Canada
  11. Lines: 43
  12.  
  13. geirt@Lise.Unit.NO (Geir Torheim) writes:
  14.  
  15. > (Running Borland C++ 3.0, Windows 3.1)
  16. > Hi,
  17. > I've made a simple graphics program which creates a bitmap and uses
  18. > BitBlt to copy the stuff to the screen. I use my own color palette and things
  19. > worked just fine, until I modified my program from using BitBlt()
  20. > to using StretchBlt(). This was the ONLY change I did in my program.
  21. > Now the colors are all wrong. AnimatePalette doesn't affect the display
  22. > anymore either. Actually, it may look like Windows won't use my color palette
  23. > anymore... :-(
  24.  
  25. > Are there any known problems with StretchBlt and colors, or should I assume
  26. > a bug in my program ?
  27. > Geir Torheim                             email: geirt@lise.unit.no
  28. > MR Centre, med. section                  Phone: +47 7 99 89 36
  29. > Olav Kyrres gt. 17                       Fax:   +47 7 99 77 08
  30. > 7006 TRONDHEIM, NORWAY                    
  31.  
  32. We have exactly the same problem. BitBlt works and StretchBlt messes up all
  33. the colours. We have read all the SDK manuals and various MS articles and
  34. have not figured it out. We also tried all sorts of permuations of
  35. palette commands. In fact we have given up for now.
  36.  
  37. One thing I suspected was my display driver but that was not conclusive
  38. either. What type of display do you use? Standard VGA or SVGA? How many
  39. colour do you use? 16, 256, 32K, 64K ? We have a 24bit Windows display also 
  40. and the StretchBlt works ok. A palette is not used for 24bit displays though, 
  41. so I suspect it is a palette problem.
  42.  
  43. Anybody out there that has a real program that displays bitmaps with
  44. StretchBlt and a palette on a 256 colour screen and actually works ?
  45.  
  46. Al
  47. ----------------------------------------------------------------------------
  48. Alan Walford     Eos Systems Inc., Vancouver,B.C., Canada  Tel: 604-734-8655
  49. aew@eosvcr.wimsey.bc.ca  OR  ...uunet!wimsey.bc.ca!eosvcr!aew  
  50.