• 0

Insert Image .png in Visual Basic 6


Question

9 answers to this question

Recommended Posts

  • 0

Ok - firstly if you are using the IDE make sure that the background property of the BMP is marked transparent - otherwise you end up with a background property of the colour defined in "Background Color".

If you are trying to do this over the desktop, you have alot more to deal with than this.

Secondly if you are doing this is code. Create a new object, type Picture and use the load command to load the file into the frame, cast this onto your form and voila!

PNG supports transparency directly and so the frame you are using will automatically display what is underneath it. Be aware that if you want to move this, you`ll need some form of double-buffering over the frame below as PNG consumes ALOT of resources since it is more a vector drawing than a bitmap.

Regards

Lazereth

Link to comment
Share on other sites

  • 0

Few things.

1. VB6 doesn't support PNG images, you have to use something else (like a library or so) to do the drawing, i found one a while back that was really fast, but had issues with interlaced images.

2. PNG isn't a "vector" image, it's a raster.

Link to comment
Share on other sites

  • 0

Few things.

1. VB6 doesn't support PNG images, you have to use something else (like a library or so) to do the drawing, i found one a while back that was really fast, but had issues with interlaced images.

2. PNG isn't a "vector" image, it's a raster.

Spot on.

That's one of the numerous benefits of the .NET framework - superior graphics support with alpha channels in PNG.

Link to comment
Share on other sites

This topic is now closed to further replies.
  • Recently Browsing   0 members

    • No registered users viewing this page.