Results 1 to 4 of 4

Thread: [2005] GDI+ Transparent Color

  1. #1

    Thread Starter
    Fanatic Member Nove's Avatar
    Join Date
    Jul 2004
    Posts
    736

    [2005] GDI+ Transparent Color

    I have an image I'm drawing with a graphics object. I simply want to make a certain color on that image transparent. How can I do this? Thanks.

  2. #2
    Hyperactive Member
    Join Date
    Jul 2005
    Posts
    297

    Re: [2005] GDI+ Transparent Color

    See the ImageAttributes.SetRemapTable Method.

  3. #3
    type Woss is new Grumpy; wossname's Avatar
    Join Date
    Aug 2002
    Location
    #!/bin/bash
    Posts
    5,683

    Re: [2005] GDI+ Transparent Color

    Look through the intellisense for the image item you want to draw. It may or may not have a "MakeColorTransparent()" method. I know that Bitmaps have it, can't remember if Images objects do though.
    I don't live here any more.

  4. #4
    I'm about to be a PowerPoster! kleinma's Avatar
    Join Date
    Nov 2001
    Location
    NJ - USA (Near NYC)
    Posts
    23,383

    Re: [2005] GDI+ Transparent Color

    Quote Originally Posted by wossname
    Look through the intellisense for the image item you want to draw. It may or may not have a "MakeColorTransparent()" method. I know that Bitmaps have it, can't remember if Images objects do though.

    Image does not have MakeColorTransparent, but as you said Bitmap objects do. I would imagine that since Bitmap inherits from Image, that you could use a bitmap object in place of an Image object when calling the DrawImage method of the graphics object (since that method only takes an Image, and not a Bitmap type)

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