Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. C#
  4. Setting Desktop Wallpaper

Setting Desktop Wallpaper

Scheduled Pinned Locked Moved C#
csharpgraphicshelpquestion
3 Posts 2 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • M Offline
    M Offline
    monrobot13
    wrote on last edited by
    #1

    Two Questions: 1.) Does the image that you set the wallpaper to have to be a bitmap? I know that in the Display Properties you can select a number of different image types, but does Windows convert them to bitmaps before it sets the wallpaper? I ask because if I use a bitmap as the wallpaper I can change it fine, if I use a jpeg it doesn't work (just sets it to a gray background). 2.) Is there a more .NET'ish was to set the desktop wallpaper? I'm currently using P/Invoke with SystemParametersInfo to change it. I guess that's three questions...Any help on this would be appreciated. Thanks

    - Aaron

    S 1 Reply Last reply
    0
    • M monrobot13

      Two Questions: 1.) Does the image that you set the wallpaper to have to be a bitmap? I know that in the Display Properties you can select a number of different image types, but does Windows convert them to bitmaps before it sets the wallpaper? I ask because if I use a bitmap as the wallpaper I can change it fine, if I use a jpeg it doesn't work (just sets it to a gray background). 2.) Is there a more .NET'ish was to set the desktop wallpaper? I'm currently using P/Invoke with SystemParametersInfo to change it. I guess that's three questions...Any help on this would be appreciated. Thanks

      - Aaron

      S Offline
      S Offline
      Stefan Troschuetz
      wrote on last edited by
      #2

      1.) Yes it has to a bitmap and Windows converts pictures with another format into a bitmap before it sets them as wallpaper. 2.) AFAIK there isn't.


      "Programming today is a race between software engineers striving to build bigger and better idiot-proof programs, and the Universe trying to produce bigger and better idiots. So far, the Universe is winning." - Rick Cook

      www.troschuetz.de

      M 1 Reply Last reply
      0
      • S Stefan Troschuetz

        1.) Yes it has to a bitmap and Windows converts pictures with another format into a bitmap before it sets them as wallpaper. 2.) AFAIK there isn't.


        "Programming today is a race between software engineers striving to build bigger and better idiot-proof programs, and the Universe trying to produce bigger and better idiots. So far, the Universe is winning." - Rick Cook

        www.troschuetz.de

        M Offline
        M Offline
        monrobot13
        wrote on last edited by
        #3

        Thanks very much for the information.

        - Aaron

        1 Reply Last reply
        0
        Reply
        • Reply as topic
        Log in to reply
        • Oldest to Newest
        • Newest to Oldest
        • Most Votes


        • Login

        • Don't have an account? Register

        • Login or register to search.
        • First post
          Last post
        0
        • Categories
        • Recent
        • Tags
        • Popular
        • World
        • Users
        • Groups