home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #20 / NN_1992_20.iso / spool / comp / lang / pascal / 5226 < prev    next >
Encoding:
Text File  |  1992-09-08  |  1.5 KB  |  44 lines

  1. Newsgroups: comp.lang.pascal
  2. Path: sparky!uunet!spool.mu.edu!news.cs.indiana.edu!lynx!nmsu.edu!death
  3. From: death@acca.nmsu.edu (Jeff Garzik)
  4. Subject: Re: 256 colours in TPW 3.0?
  5. Message-ID: <1992Sep7.104506.24896@nmsu.edu>
  6. Sender: usenet@nmsu.edu
  7. Organization: New Mexico State University
  8. X-Newsreader: Tin 1.1 PL5
  9. References: <6003@m1.cs.man.ac.uk>
  10. Date: Mon, 7 Sep 1992 10:45:06 GMT
  11. Lines: 31
  12.  
  13. Mark Robinson (JO PhD) (mark-r@spec0.ee.man.ac.uk) wrote:
  14. : Hi.
  15. : First, let me apologise if this is a FAQ or naive question, I'm
  16. : new to both TPW and this group.
  17. : I've started using TP for WIndows 3.0 with Windows 3.1 set to
  18. : 800x600 by 256 (I have a Trident SGVA card). My problem is I
  19. : can't use any more than the 20 reserved system colours when
  20. : displaying bitmaps, presumably because GetDeviceCaps returns 20
  21. : for the number of colours supported by the device. I seem to
  22. : be able to add colours to the palette and realize it, but when I
  23. : BitBlt my 256 colour bitmap to the screen, all the colours are
  24. : mapped to their nearest system colour.
  25. : Is this a compatability problem with Windows 3.1 or am I doing
  26. : something silly? Does anybody have a fragment of code which displays
  27. : 256 colour device independent bitmaps?
  28.  
  29. I would check out the examples given in the OWLDEMOS directory on your
  30. hard disk.  There is at least one bitmap viewer that I know of in there
  31. that will display 256-color bitmaps.
  32.  
  33. BTW - Your are using TPW 1.0, not TPW 3.0 as your title suggested.
  34.  
  35. --
  36. "Only sheep need a leader." - Nomeansno
  37.  
  38. death@acca.nmsu.edu
  39.  
  40.