home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!pipex!unipalm!uknet!mucs!spec0.ee.man.ac.uk
- From: mark-r@spec0.ee.man.ac.uk (Mark Robinson (JO PhD))
- Newsgroups: comp.lang.pascal
- Subject: 256 colours in TPW 3.0?
- Message-ID: <6003@m1.cs.man.ac.uk>
- Date: 4 Sep 92 09:04:13 GMT
- Sender: news@cs.man.ac.uk
- Organization: Dept Electrical and Electronic Eng, Manchester University, UK
- Lines: 22
-
-
- Hi.
-
- First, let me apologise if this is a FAQ or naive question, I'm
- new to both TPW and this group.
-
- I've started using TP for WIndows 3.0 with Windows 3.1 set to
- 800x600 by 256 (I have a Trident SGVA card). My problem is I
- can't use any more than the 20 reserved system colours when
- displaying bitmaps, presumably because GetDeviceCaps returns 20
- for the number of colours supported by the device. I seem to
- be able to add colours to the palette and realize it, but when I
- BitBlt my 256 colour bitmap to the screen, all the colours are
- mapped to their nearest system colour.
-
- Is this a compatability problem with Windows 3.1 or am I doing
- something silly? Does anybody have a fragment of code which displays
- 256 colour device independent bitmaps?
-
- Cheers
- Mark
- mark-r@spec0.ee.man.ac.uk
-