Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Displaying .png pictures?? 2

Status
Not open for further replies.

NeilFrank

Programmer
Mar 12, 2000
167
CA
I find that VB6 Image or PictureBoxes cannot accept .pngs ("Invalid Picture").

Is there any control that will display .pngs?

Alternatively, is there any way to convert .pngs to .gifs at runtime?

 
Ahh, and everyone complains new Windows versions have only been cosmetic:
Code:
Option Explicit
'Requires Windows XP SP 1 or later, and a reference to:
'
'   Microsoft Windows Image Acquisition Library v2.0
'

Private Sub Command1_Click()
    With New WIA.ImageFile
        .LoadFile "Misc1.png"
        Set Image1 = .FileData.Picture
    End With
End Sub
 
Sheesh:

Note that [tt]Set Image[/tt] is really [tt]Set Image.Picture[/tt] there (default property).
 
Ok, I meant [tt]Image1[/tt] up there.

Not being able to edit posts can make you look pretty silly. Well, back to my vacation!
 
Never seen this WIL before. Is it possible to set what color is shown for transparency?

Be good. If you can't, don't get caught!
 
Not that I know of. But you could use a filter to stamp an image with alpha transparency over a solid color image, producing a new merged image.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top