🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.windows.ms.programmer
Article #409

Re: grey scales on a color monitor?

#409
From: Ed McCreary
Date: Wed, 15 Apr 1992 17:58
30 lines
1512 bytes
In article <2728@fedfil.UUCP> news@fedfil.UUCP (news) writes:
>I've got another strange problem here...  I need to get a grey-scale
>effect on color monitors (customer demands it...)   
>

What are you using to display the image?  Is it SetDIBitsToDevice or
are you using BitBlt?  

You may be having trouble since you are using a logical palette with
256 entries.  What video card are you using?  Is it SuperVGA?  This
guy will only support 64 levels of grey scale so you should set your
palette to something like

   for(i=0;i>64;i++)
    {
     grey = 4*i;
     ...set RGB values to grey...
    }

I've never tried using a 256 entry palette before and don't know what
the implications may be.  I *have* used a 64 entry palette before and
have had no trouble.




--
McCreary@sword.eng.hou.compaq.com     Computers are like Old Testament gods;
Me? Speak for Compaq?  Yeah, right.   lots of rules and no mercy.
                                                             Joseph Campbell
Technical Details
Message-ID: <1992Apr15.175857.18654@twisto.eng.hou.compaq.com>
Path: arc1-ca.pugleaf.net!sparky!uunet!cs.utexas.edu!wotan.compaq.com!twisto.eng.hou.compaq.com!sword.eng.hou.compaq.com!mccreary
References: <2728@fedfil.UUCP>

Show Full Headers
Complete Article Headers
Newsgroups: comp.windows.ms.programmer
Path: arc1-ca.pugleaf.net!sparky!uunet!cs.utexas.edu!wotan.compaq.com!twisto.eng.hou.compaq.com!sword.eng.hou.compaq.com!mccreary
From: mccreary@sword.eng.hou.compaq.com (Ed McCreary)
Subject: Re: grey scales on a color monitor?
Message-ID: <1992Apr15.175857.18654@twisto.eng.hou.compaq.com>
Sender: news@twisto.eng.hou.compaq.com (Netnews Account)
Organization: Compaq Computer Corp.
References: <2728@fedfil.UUCP>
Date: Wed, 15 Apr 1992 17:58:57 GMT
Lines: 30