🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.cppbuilder.nativeapi
Article #3949

Re: Creating / mimicing the XP shutdown grey fade...

#3949
From: Bob Gonder
Date: Thu, 06 Apr 2006 21:52
26 lines
2145 bytes
Mike Collins wrote:

>Hay JD, thanks for post, was so busy that I forgot to get back to you. 
>Basically I combined what you had posted with some code that I saw from 
>CodeProject.
>
>Firstly I captured the destop with hDC = ::GetDC(0);  I then tried to 
>gradually fade this to the gray slate final colour but it ended up looking 
>crap, stagged and jurkey so when straight to the gray - it looks ok but if 
>you have any code that achieves that I want, I'd love to have a look.

One method is to pixelate-to-grayish.
turn every eighth pixel to gray or black (stagger each line)
turn every 4th, end with every 2nd.

Other method is as JD posted, trend each pixel to r=g=b=128.

One that comes to mind;

#define	AdjustColor( c )	(( 128-(c) )/4)

    pixel.red += AdjustColor(pixel.red);   // move 1/4 towards gray

I think there will be some sign issues with that
There might also be color issues that I think JD's code handled with
the varying rates depending on R,G,B.
Technical Details
Message-ID: <i92b32l3ad40clgmt0o3utmhbg6bc9fmt8@4ax.com>
Path: arc1-ca.pugleaf.net!g2news1.google.com!news2.google.com!news4.google.com!border1.nntp.dca.giganews.com!nntp.giganews.com!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail
References: <442b1df3$1@newsgroups.borland.com> <442bbd3f$1@newsgroups.borland.com> <442cdc46$1@newsgroups.borland.com> <44315fae$1@newsgroups.borland.com> <44351e8d@newsgroups.borland.com>

Show Full Headers
Complete Article Headers
X-Google-Thread: 10cc67,ff65259e4dac42c3
X-Google-Attributes: gid10cc67,public
X-Google-Language: ENGLISH,ASCII-7-bit
From: Bob Gonder <notbg@notmindspring.invalid>
Newsgroups: borland.public.cppbuilder.nativeapi
Subject: Re: Creating / mimicing the XP shutdown grey fade...
Date: Thu, 06 Apr 2006 14:52:44 -0700
Organization: MindSpring Enterprises, Inc.
Reply-To: notbg@notmindspring.invalid
Message-ID: <i92b32l3ad40clgmt0o3utmhbg6bc9fmt8@4ax.com>
References: <442b1df3$1@newsgroups.borland.com> <442bbd3f$1@newsgroups.borland.com> <442cdc46$1@newsgroups.borland.com> <44315fae$1@newsgroups.borland.com> <44351e8d@newsgroups.borland.com>
X-Newsreader: Forte Agent 1.93/32.576 English (American)
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
NNTP-Posting-Host: 4.246.207.42
X-Trace: newsgroups.borland.com 1144360361 4.246.207.42 (6 Apr 2006 14:52:41 -0700)
Lines: 29
Path: arc1-ca.pugleaf.net!g2news1.google.com!news2.google.com!news4.google.com!border1.nntp.dca.giganews.com!nntp.giganews.com!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail