Index | Next 

Image format tests

VB6 developers can test the type of an image by testing the picture’s Type property against the values of the PictureTypeConstants enumerated type, as in:
        If Picture1.Picture.Type = PictureTypeConstants.vbPicTypeEMetafile Then …
The .NET Image type doesn’t expose the Type property, but has an equivalent property named RawFormat.

Here’s how VB Migration Partner translates previous code:
        If Picture1.Picture.RawFormat is System.Drawing.Imaging.ImageFormat.Emf Then …

 

Index | Next