Results 1 to 2 of 2

Thread: [2005] Background Opaque/Transparent problem

  1. #1

    Thread Starter
    Hyperactive Member ZaNi's Avatar
    Join Date
    Jun 2006
    Location
    Australia
    Posts
    360

    [2005] Background Opaque/Transparent problem

    I'm trying to use some graphics which I drew in paint then imported into my resources in visual basic 2005. I want to display the images in pictureboxes

    I am having trouble get the program to recognise the background of the images. I cannot seem to set them to some sort of transparent or default colour that will be ignored. White comes out as white, drawing as opaque (until the image menu) doesn't seem to help.

    Alarmingly, Visual Studio has crashed a few times while I've been trying to edit the pictures...

    Anybody know the process to set the background to default/opaque/transparent? If need be, I can recreate them from scratch (they're fairly small), I just want it to work.

    Edit: I'm using bitmaps if that changes anything (but I don't need to)

  2. #2
    Super Moderator jmcilhinney's Avatar
    Join Date
    May 2005
    Location
    Sydney, Australia
    Posts
    111,221

    Re: [2005] Background Opaque/Transparent problem

    You would need to use an image format that supports transparency and I don't think that BMP does. From what you've said about what you're doing in various threads I'm guessing that these are fairly simple images. If that's the case then you shouldn't have any issue using the GIF format, which does support transparency. I believe that PNG would do the job too. It may be better for more complex images. I'm no graphics guru mind you so there may be another solution.
    Why is my data not saved to my database? | MSDN Data Walkthroughs
    VBForums Database Development FAQ
    My CodeBank Submissions: VB | C#
    My Blog: Data Among Multiple Forms (3 parts)
    Beginner Tutorials: VB | C# | SQL

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