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