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. importing pictures

importing pictures

Scheduled Pinned Locked Moved C#
helpquestioncsharpgraphicsadobe
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.
  • V Offline
    V Offline
    Vineet Rajan
    wrote on last edited by
    #1

    hi all! this is the nature of the problem i am facing: i imported a flash media on to a form. i need to put a picture over the flash media. the picture i created had a transparent background. but when i import it into form, it assumes the background of the form. i would want the image to keep the background transparent. how do i do that? am i following the right approach? would it be better if i created the media with the graphics libraries in C#? please help...fast...

    C 1 Reply Last reply
    0
    • V Vineet Rajan

      hi all! this is the nature of the problem i am facing: i imported a flash media on to a form. i need to put a picture over the flash media. the picture i created had a transparent background. but when i import it into form, it assumes the background of the form. i would want the image to keep the background transparent. how do i do that? am i following the right approach? would it be better if i created the media with the graphics libraries in C#? please help...fast...

      C Offline
      C Offline
      Colin Angus Mackay
      wrote on last edited by
      #2

      Puddle of Blood wrote:

      but when i import it into form, it assumes the background of the form.

      That is correct. Transparency in Windows at the present time is a fudge. Windows does not currently implement proper transparency as Windows Vista will do. The trick that the operating system uses is to ask the control's parent how it would render itself if it didn't have the control on top of it (This works most of the time, but you've found one of the instances where it doesn't). Windows then merges the parent's graphics with the rendering of the control and draws it solidly. In most circumstances the user wouldn't even know the difference. Since your picture control's parent will be the form, it is the form's background that gets rendered in the transparent area of the control. ColinMackay.net Scottish Developers are looking for speakers for user group sessions over the next few months. Do you want to know more?

      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