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. Floating Images

Floating Images

Scheduled Pinned Locked Moved C#
question
2 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.
  • D Offline
    D Offline
    dsl fahk
    wrote on last edited by
    #1

    Hello everyone, I have a form and a picture, and i want the picture to "hang" off of the form. I have tried making the background of the picture transparent, and making a background with a special color for transparency, but the image has a shadow and the color continues to show up in the shadow when it is run. What should I do differently to get this to work? Thanks.

    C 1 Reply Last reply
    0
    • D dsl fahk

      Hello everyone, I have a form and a picture, and i want the picture to "hang" off of the form. I have tried making the background of the picture transparent, and making a background with a special color for transparency, but the image has a shadow and the color continues to show up in the shadow when it is run. What should I do differently to get this to work? Thanks.

      C Offline
      C Offline
      Christian Graus
      wrote on last edited by
      #2

      The image is probably a jpeg. JPEG images use lossy compression, so the color that was solid, is now a range of colors in that general vicinity. Draw the image yourself on your background, in a paint event handler. Use the ImageAttributes class as a parameter when drawing the image, and you can specify a range of colors to make transparent.

      Christian Graus - Microsoft MVP - C++ Metal Musings - Rex and my new metal blog

      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