Results 1 to 2 of 2

Thread: [2008] transparent frame on an image

  1. #1

    Thread Starter
    Frenzied Member Icyculyr's Avatar
    Join Date
    Aug 2007
    Location
    Australia
    Posts
    1,934

    [2008] transparent frame on an image

    Basically, I have thumbnail images (Picture boxes) which are 122 * 98, at the locations
    X69, Y500, X201, Y500, X339, Y500,

    Just a few of them I am using as an example,

    Basically I want to load the main image onto the picture, like this:
    Code:
    ThumbViewer(0).BackgroundImageLayout = ImageLayout.StretchImage
    ThumbViewer(0).BackgroundImage = Image.FromFile(ThumbList(0))
    
    ThumbViewer(i).SizeMode = PictureBoxSizeMode.StretchImage
    ThumbViewer(0).Load("MyFrame")
    So the background image would be the picture, and the frame would be around that, it would cut a little bit of the background image off, but I do not mind, the thing I am wondering is, how can I do this

    I made the frame I want in Photoshop CS2, and did Help - Export transparent image, and exported it as a transparent image, but when I put it on my picturebox, it appears to be 'white' through the middle, it should show the background image.

    Thanks in advance

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

    Re: [2008] transparent frame on an image

    You should create a UserControl, place your frame image on that, then add your PictureBox over that within the frame. You then just provide pass-through members in your UC to expose the members of the PictureBox.
    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