CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 2 of 2
  1. #1
    Join Date
    Feb 2006
    Posts
    1

    importinf pictures (transparent background)

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

  2. #2
    Join Date
    Jun 2003
    Location
    Malaysia (P.J)
    Posts
    410

    Re: importinf pictures (transparent background)

    Here is one method:

    Image m_FilledImage =Image.FromFile(@"c:\mybitmap.bmp");

    Color colTrans = m_FilledImage.GetPixel(1, 1); // get the pixel u want to make it transparent
    m_FilledImage.MakeTransparent(colTrans);
    Back after a long hibernation.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured