I have PNG and need to know if it has an alpha (or if the alpha is completely white)? How can I accomplish this in vb.net code.
+1
A:
Use System.Drawing.Image.Flags:
Dim HasAlpha As Boolean
Using I = System.Drawing.Image.FromFile("c:\test.png")
HasAlpha = (I.Flags And System.Drawing.Imaging.ImageFlags.HasAlpha) = System.Drawing.Imaging.ImageFlags.HasAlpha
End Using
Chris Haas
2010-01-13 16:25:01