DonationCoder.com forum
 
Read-only archive. This is a static copy of the DonationCoder.com forum. Reading and searching work as before; logging in, posting and private messages do not.
Archive of 2026-10-21 · About this archive · Main site

Last post Author Topic: Strange Windows wallpaper trick  (Read 55,662 times)

Edvard

  • Coding Snacks Author
  • Charter Honorary Member
  • Joined in 2005
  • ***
  • Posts: 3,027
    • Participated in NANY Challenge Once
    • Coding Snacks
    • Linux User
Strange Windows wallpaper trick
« on: March 20, 2007, 08:02 PM »
Try this, it's nutty...

Open your Paint program.
Select Image->Attributes and make your image 2 pixels by 2 pixels.
Select View->Zoom->Custom->800%
Now put black in the lower-left corner, dark gray in the lower-right corner, and light grey in the upper-left.
Like so...

paint.jpg

Save it somewhere convenient, then in your display properties, select the bitmap you just made, select 'Center' and  Stretch Desktop Wallpaper enabled.

Lovely isn't it?
desk.jpg

This works with all kinds of bitmaps, look at this one...

paint2.jpg

and what it does...
desk2.jpg
All children left unattended will be given a mocha and a puppy.
« Last Edit: March 20, 2007, 08:08 PM by Edvard »

jgpaiva

  • Artificial Idiocy
  • Global Moderator
  • Joined in 2006
  • *****
  • Posts: 4,727
    • Cody Award
    • Participated in NANY Challenge Once
    • Coding Snacks
    • Portugal Inhabitant
    • Linux User
Re: Strange Windows wallpaper trick
« Reply #1 on: March 20, 2007, 08:19 PM »
Hey, good tip!
I like it a lot! :D ;D

Edvard

  • Coding Snacks Author
  • Charter Honorary Member
  • Joined in 2005
  • ***
  • Posts: 3,027
    • Participated in NANY Challenge Once
    • Coding Snacks
    • Linux User
Re: Strange Windows wallpaper trick
« Reply #2 on: March 20, 2007, 10:55 PM »
The best part is you get nifty gradation wallpapers that clock in at < 100 bytes (not a typo!)  :-*

All children left unattended will be given a mocha and a puppy.

f0dder

  • [Well, THAT escalated quickly!]
  • Charter Honorary Member
  • Joined in 2005
  • ***
  • Posts: 9,153
    • Participated in NANY Challenge Once
Re: Strange Windows wallpaper trick
« Reply #3 on: March 20, 2007, 11:20 PM »
What shell are you using, Edvard?

Cute trick, I wonder if all Windows versions does this kind of interpolation when stretchblt'ing :)
- carpe noctem

Edvard

  • Coding Snacks Author
  • Charter Honorary Member
  • Joined in 2005
  • ***
  • Posts: 3,027
    • Participated in NANY Challenge Once
    • Coding Snacks
    • Linux User
Re: Strange Windows wallpaper trick
« Reply #4 on: March 21, 2007, 12:02 AM »
My desktop as pictured is a PowerPro bar at the bottom, JSPager virtual desktop thingummy at the top and I have my taskbar and icons hidden.
Also it's NT4.0 SP6a. (surprise!) so other versions should do as well...

I've found that you get the best effects the less pixels you use (a 1x2 bitmap gets you a nice horizontal gradation), and it's quite a mental exercise to predict the effect you'll get with such a minimal configuration.
I must admit, I have a soft spot for gradated wallpapers and have used a nice little app called "bsetroot" that does all kinds of nice gradation effects (get it here) as well as Amok's GradientDesk (search google, it's floating around...) which is where I got the inspiration for this idea.
I opened one of the GradientDesk-created wallpapers in XnView by accident and was shocked to see a just a 1-pixel line that faded from one color to the other.

I wonder if this could start a trend of people trading 2 and 4 pixel wallpapers with whimsical names.
Here's 'Purple Dawn'
purple dawn.bmp (70 B)
and 'Hazy Inspiration'
hazy inspiration.bmp (90 B)
All children left unattended will be given a mocha and a puppy.
« Last Edit: March 21, 2007, 12:07 AM by Edvard »

lanux128

  • Global Moderator
  • Joined in 2005
  • *****
  • Posts: 6,277
    • Coding Snacks
    • Volunteers/Staff
    • Gathering Badge
    • Participated in NANY Challenge Once
    • Linux User
Re: Strange Windows wallpaper trick
« Reply #5 on: March 21, 2007, 01:02 AM »
a good one, Edvard.. :Thmbsup:

Ampa

  • I am cute ;)
  • Charter Member
  • Joined in 2005
  • ***
  • Posts: 592
Re: Strange Windows wallpaper trick
« Reply #6 on: March 22, 2007, 02:42 PM »
The best part is you get nifty gradation wallpapers that clock in at < 100 bytes (not a typo!)  :-*

I don't think that this is quite true... My belief is that Windows does the interpolation which results in the nice smooth gradient and saves this as a .bmp - it is this temp file which is used as the background image. So the original file IS tiny, but the temp file is that same size as any other wallpaper.

I am not sure where this file is stored - perhaps someone else can find it?

Reason for thinking this... erm, perhaps I read it somewhere once? And I think this is certainly how jpgs are handled (converted to a bitmap first).

Ampa

f0dder

  • [Well, THAT escalated quickly!]
  • Charter Honorary Member
  • Joined in 2005
  • ***
  • Posts: 9,153
    • Participated in NANY Challenge Once
Re: Strange Windows wallpaper trick
« Reply #7 on: March 22, 2007, 03:27 PM »
No, it doesn't use a temp file - it might do the interpolation to a temporary in-memory bitmap, but I don't think it does this either.
- carpe noctem

cthorpe

  • Discount Coordinator
  • Supporting Member
  • Joined in 2006
  • **
  • Posts: 738
Re: Strange Windows wallpaper trick
« Reply #8 on: March 22, 2007, 04:09 PM »
Save it somewhere convenient, then in your display properties, select the bitmap you just made, select 'Center' and  Stretch Desktop Wallpaper enabled.

:(

Something's not quite right here...

sad.png

How do you select both Center and Stretch at the same time?

Oh, I'm on WinXPPro
« Last Edit: March 22, 2007, 04:32 PM by cthorpe »

Ruffnekk

  • Uhm yeah...
  • Honorary Member
  • Joined in 2006
  • **
  • Posts: 332
    • Programming School - Stage 1 Medal
    • Programming School - Deluxe Bonus Medal
    • Participated in NANY Challenge Once
    • Linux User
Re: Strange Windows wallpaper trick
« Reply #9 on: March 22, 2007, 04:11 PM »
Excellent find :)

I think we should start a 10 x 10 bitmap competition to see who can make the most beautiful :P
Regards,
RuffNekk

Programming is an art form that fights back.

f0dder

  • [Well, THAT escalated quickly!]
  • Charter Honorary Member
  • Joined in 2005
  • ***
  • Posts: 9,153
    • Participated in NANY Challenge Once
Re: Strange Windows wallpaper trick
« Reply #10 on: March 22, 2007, 04:13 PM »
Who can make the best 10x10 stretch of cody or the codycoin? :)
- carpe noctem

jgpaiva

  • Artificial Idiocy
  • Global Moderator
  • Joined in 2006
  • *****
  • Posts: 4,727
    • Cody Award
    • Participated in NANY Challenge Once
    • Coding Snacks
    • Portugal Inhabitant
    • Linux User
Re: Strange Windows wallpaper trick
« Reply #11 on: March 22, 2007, 06:47 PM »
cthorpe: you don't select both, only strech (on XPpro).
I must say you got some odd effects, it shouldn't look like that. Are you sure you're using a bitmap with only 4 pixels?
You could try the ones edvard posted on the above post.

cthorpe

  • Discount Coordinator
  • Supporting Member
  • Joined in 2006
  • **
  • Posts: 738
Re: Strange Windows wallpaper trick
« Reply #12 on: March 22, 2007, 06:57 PM »
:(
Sad Hazy Inspiration

sadhazy.png
« Last Edit: March 22, 2007, 07:09 PM by cthorpe »

Ruffnekk

  • Uhm yeah...
  • Honorary Member
  • Joined in 2006
  • **
  • Posts: 332
    • Programming School - Stage 1 Medal
    • Programming School - Deluxe Bonus Medal
    • Participated in NANY Challenge Once
    • Linux User
Re: Strange Windows wallpaper trick
« Reply #13 on: March 22, 2007, 07:10 PM »
Weird, it doesn't work on my laptop with the exact same images I made for my workstation... but I don't see any difference in display settings... it must be something with the graphics driver perhaps?
Regards,
RuffNekk

Programming is an art form that fights back.

jgpaiva

  • Artificial Idiocy
  • Global Moderator
  • Joined in 2006
  • *****
  • Posts: 4,727
    • Cody Award
    • Participated in NANY Challenge Once
    • Coding Snacks
    • Portugal Inhabitant
    • Linux User
Re: Strange Windows wallpaper trick
« Reply #14 on: March 22, 2007, 07:16 PM »
oh.. :(
I have no idea what's happening, then..
I only have one computer, with xpPro sp2 and it does work.

cthorpe

  • Discount Coordinator
  • Supporting Member
  • Joined in 2006
  • **
  • Posts: 738
Re: Strange Windows wallpaper trick
« Reply #15 on: March 22, 2007, 07:30 PM »
I'm also seeing different results on different computers.  On my home computer it works, on my work computer it doesn't.

C

Ruffnekk

  • Uhm yeah...
  • Honorary Member
  • Joined in 2006
  • **
  • Posts: 332
    • Programming School - Stage 1 Medal
    • Programming School - Deluxe Bonus Medal
    • Participated in NANY Challenge Once
    • Linux User
Re: Strange Windows wallpaper trick
« Reply #16 on: March 22, 2007, 07:31 PM »
Maybe that's it, I have XP Pro SP1 on my laptop and XP Pro SP2 on my other one...

CThorpe: Do you have SP1 or SP2?
Regards,
RuffNekk

Programming is an art form that fights back.

cthorpe

  • Discount Coordinator
  • Supporting Member
  • Joined in 2006
  • **
  • Posts: 738
Re: Strange Windows wallpaper trick
« Reply #17 on: March 22, 2007, 07:39 PM »
sp2 on both

thefritz_j

  • Charter Honorary Member
  • Joined in 2005
  • ***
  • Posts: 75
Re: Strange Windows wallpaper trick
« Reply #18 on: March 22, 2007, 08:09 PM »
Does anyone think that the smoothing might be related to an Active Desktop setting?  Just an idea

BTW I love minimalist art! this is a sweet discovery! :Thmbsup:
« Last Edit: March 22, 2007, 08:13 PM by thefritz_j »

PhilB66

  • Supporting Member
  • Joined in 2007
  • **
  • Posts: 1,522
Re: Strange Windows wallpaper trick
« Reply #19 on: March 23, 2007, 02:00 AM »
Hi all, my name is Phil and I am an addi... oops, wrong forum. Cool trick Edvard, but it does not work if I choose to hide desktop icons by right clicking on an empty area on your desktop and unticking 'show desktop icons'. Any idea why?

Thanks,

Phil

BTW, my box runs on xp sp2.

Strangely, this trick works fine if I click on the 'show the desktop' button on the taskbar to hide icons and active windows.

f0dder

  • [Well, THAT escalated quickly!]
  • Charter Honorary Member
  • Joined in 2005
  • ***
  • Posts: 9,153
    • Participated in NANY Challenge Once
Re: Strange Windows wallpaper trick
« Reply #20 on: March 23, 2007, 06:53 AM »
Hm, it might have something to do with graphics driver capabilities. It does work fine here even in vmware though, so it would take some very minimal caps in order not to work, if it was about caps :-s
- carpe noctem

cthorpe

  • Discount Coordinator
  • Supporting Member
  • Joined in 2006
  • **
  • Posts: 738
Re: Strange Windows wallpaper trick
« Reply #21 on: March 23, 2007, 02:58 PM »
My home PC has a 32mb Ge-Force 2MX card and it works perfectly.

My work PC has a Radeon X300/X550 Series PCI-Express with 64mb.  Now I do think that the work PC is still using the drivers that came preinstalled by Dell when the PC was purchased almost 2 years ago, so that may have something to do with it.

C

Cavalcader

  • Live Long & Prosper
  • Charter Member
  • Joined in 2006
  • ***
  • Posts: 194
Re: Strange Windows wallpaper trick
« Reply #22 on: March 24, 2007, 03:05 AM »
Something's not quite right here...
For machines where it's not working as a gradient, try IrfanView (.com). Once you load the pixels into it, you can either do ctrl-shift-S (for Stretch) to show it as wallpaper, or go fullscreen and tap the "3" key just to view it. (Ctrl-R will let you Resize it to save it permanently -- the recommended setting is "resampled" with Lanczos filter.)
My Linguistic Profile:
  40% General American English
  30% Yankee
  20% Dixie

What Kind of American English Do You Speak?

iphigenie

  • curiosity FTW!
  • Supporting Member
  • Joined in 2006
  • **
  • Posts: 1,170
Re: Strange Windows wallpaper trick
« Reply #23 on: March 24, 2007, 09:55 AM »
I suspect it depends whether you have enabled or disabled the "pretty" effects in windows.
It doesn't work on my PC but I know one thing I did was disable all the "prettification" effects, for performance. I suspect one of those might be what does the nice interpolation on the desktop.

For some reason I can't find the options menu anywhere atm, Saturday morning effect I guess

edit: no, even turning on "adjust for best appearance" didnt fix it :(
« Last Edit: March 24, 2007, 09:58 AM by iphigenie »

Cavalcader

  • Live Long & Prosper
  • Charter Member
  • Joined in 2006
  • ***
  • Posts: 194
Re: Strange Windows wallpaper trick
« Reply #24 on: March 24, 2007, 02:10 PM »
no, even turning on "adjust for best appearance" didnt fix it :(
There's an article on the Windows Shell blog about MS having to fix scaling for Vista, so there may have been a Windows Update patch that fixed something there for XP as well.
My Linguistic Profile:
  40% General American English
  30% Yankee
  20% Dixie

What Kind of American English Do You Speak?

Original address: https://www.donationcoder.com/forum/index.php?topic=7833.0