topbanner_forum
  *

avatar image

Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length
  • Thursday March 28, 2024, 3:52 pm
  • Proudly celebrating 15+ years online.
  • Donate now to become a lifetime supporting member of the site and get a non-expiring license key for all of our programs.
  • donate

Last post Author Topic: Strange Windows wallpaper trick  (Read 45952 times)

Edvard

  • Coding Snacks Author
  • Charter Honorary Member
  • Joined in 2005
  • ***
  • Posts: 3,017
    • View Profile
    • Donate to Member
Strange Windows wallpaper trick
« on: March 20, 2007, 03: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
« Last Edit: March 20, 2007, 03:08 PM by Edvard »

jgpaiva

  • Global Moderator
  • Joined in 2006
  • *****
  • Posts: 4,727
    • View Profile
    • Donate to Member
Re: Strange Windows wallpaper trick
« Reply #1 on: March 20, 2007, 03:19 PM »
Hey, good tip!
I like it a lot! :D ;D

Edvard

  • Coding Snacks Author
  • Charter Honorary Member
  • Joined in 2005
  • ***
  • Posts: 3,017
    • View Profile
    • Donate to Member
Re: Strange Windows wallpaper trick
« Reply #2 on: March 20, 2007, 05:55 PM »
The best part is you get nifty gradation wallpapers that clock in at < 100 bytes (not a typo!)  :-*


f0dder

  • Charter Honorary Member
  • Joined in 2005
  • ***
  • Posts: 9,153
  • [Well, THAT escalated quickly!]
    • View Profile
    • f0dder's place
    • Read more about this member.
    • Donate to Member
Re: Strange Windows wallpaper trick
« Reply #3 on: March 20, 2007, 06: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,017
    • View Profile
    • Donate to Member
Re: Strange Windows wallpaper trick
« Reply #4 on: March 20, 2007, 07:02 PM »
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 (0.07 kB. 2x2 - viewed 1032 times.)
and 'Hazy Inspiration'
* hazy inspiration.bmp (0.09 kB. 3x3 - viewed 945 times.)
« Last Edit: March 20, 2007, 07:07 PM by Edvard »

lanux128

  • Global Moderator
  • Joined in 2005
  • *****
  • Posts: 6,277
    • View Profile
    • Donate to Member
Re: Strange Windows wallpaper trick
« Reply #5 on: March 20, 2007, 08:02 PM »
a good one, Edvard.. :Thmbsup:

Ampa

  • Charter Member
  • Joined in 2005
  • ***
  • Posts: 592
  • I am cute ;)
    • View Profile
    • MonkeyDash - 2 Player strategy boardgame
    • Donate to Member
Re: Strange Windows wallpaper trick
« Reply #6 on: March 22, 2007, 09:42 AM »
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

  • Charter Honorary Member
  • Joined in 2005
  • ***
  • Posts: 9,153
  • [Well, THAT escalated quickly!]
    • View Profile
    • f0dder's place
    • Read more about this member.
    • Donate to Member
Re: Strange Windows wallpaper trick
« Reply #7 on: March 22, 2007, 10:27 AM »
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
  • c++thorpe
    • View Profile
    • Donate to Member
Re: Strange Windows wallpaper trick
« Reply #8 on: March 22, 2007, 11:09 AM »
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.pngStrange Windows wallpaper trick

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

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

Ruffnekk

  • Honorary Member
  • Joined in 2006
  • **
  • Posts: 332
  • Uhm yeah...
    • View Profile
    • RuffNekk's Crypto Pages
    • Donate to Member
Re: Strange Windows wallpaper trick
« Reply #9 on: March 22, 2007, 11:11 AM »
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

  • Charter Honorary Member
  • Joined in 2005
  • ***
  • Posts: 9,153
  • [Well, THAT escalated quickly!]
    • View Profile
    • f0dder's place
    • Read more about this member.
    • Donate to Member
Re: Strange Windows wallpaper trick
« Reply #10 on: March 22, 2007, 11:13 AM »
Who can make the best 10x10 stretch of cody or the codycoin? :)
- carpe noctem

jgpaiva

  • Global Moderator
  • Joined in 2006
  • *****
  • Posts: 4,727
    • View Profile
    • Donate to Member
Re: Strange Windows wallpaper trick
« Reply #11 on: March 22, 2007, 01: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
  • c++thorpe
    • View Profile
    • Donate to Member
Re: Strange Windows wallpaper trick
« Reply #12 on: March 22, 2007, 01:57 PM »
 :(
Sad Hazy Inspiration

sadhazy.pngStrange Windows wallpaper trick
« Last Edit: March 22, 2007, 02:09 PM by cthorpe »

Ruffnekk

  • Honorary Member
  • Joined in 2006
  • **
  • Posts: 332
  • Uhm yeah...
    • View Profile
    • RuffNekk's Crypto Pages
    • Donate to Member
Re: Strange Windows wallpaper trick
« Reply #13 on: March 22, 2007, 02: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

  • Global Moderator
  • Joined in 2006
  • *****
  • Posts: 4,727
    • View Profile
    • Donate to Member
Re: Strange Windows wallpaper trick
« Reply #14 on: March 22, 2007, 02: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
  • c++thorpe
    • View Profile
    • Donate to Member
Re: Strange Windows wallpaper trick
« Reply #15 on: March 22, 2007, 02: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

  • Honorary Member
  • Joined in 2006
  • **
  • Posts: 332
  • Uhm yeah...
    • View Profile
    • RuffNekk's Crypto Pages
    • Donate to Member
Re: Strange Windows wallpaper trick
« Reply #16 on: March 22, 2007, 02: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
  • c++thorpe
    • View Profile
    • Donate to Member
Re: Strange Windows wallpaper trick
« Reply #17 on: March 22, 2007, 02:39 PM »
sp2 on both

thefritz_j

  • Charter Honorary Member
  • Joined in 2005
  • ***
  • Posts: 75
    • View Profile
    • Donate to Member
Re: Strange Windows wallpaper trick
« Reply #18 on: March 22, 2007, 03: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, 03:13 PM by thefritz_j »

PhilB66

  • Supporting Member
  • Joined in 2007
  • **
  • Posts: 1,522
    • View Profile
    • Donate to Member
Re: Strange Windows wallpaper trick
« Reply #19 on: March 22, 2007, 09:00 PM »
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

  • Charter Honorary Member
  • Joined in 2005
  • ***
  • Posts: 9,153
  • [Well, THAT escalated quickly!]
    • View Profile
    • f0dder's place
    • Read more about this member.
    • Donate to Member
Re: Strange Windows wallpaper trick
« Reply #20 on: March 23, 2007, 01: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
  • c++thorpe
    • View Profile
    • Donate to Member
Re: Strange Windows wallpaper trick
« Reply #21 on: March 23, 2007, 09:58 AM »
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

  • Charter Member
  • Joined in 2006
  • ***
  • Posts: 194
  • Live Long & Prosper
    • View Profile
    • Donate to Member
Re: Strange Windows wallpaper trick
« Reply #22 on: March 23, 2007, 10:05 PM »
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

  • Supporting Member
  • Joined in 2006
  • **
  • Posts: 1,170
    • View Profile
    • Donate to Member
Re: Strange Windows wallpaper trick
« Reply #23 on: March 24, 2007, 04: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, 04:58 AM by iphigenie »

Cavalcader

  • Charter Member
  • Joined in 2006
  • ***
  • Posts: 194
  • Live Long & Prosper
    • View Profile
    • Donate to Member
Re: Strange Windows wallpaper trick
« Reply #24 on: March 24, 2007, 09:10 AM »
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?