[]
Gets the type of the image.
Returns the ImageType that was assigned when this image source was created.
public ImageType Type { get; }
Public ReadOnly Property Type As ImageType
byte[] imageBytes = new byte[] { (byte)137, 80, 78, 71, 13, 10, 26, 10 };
ImageSource imageSource = new ImageSource(
new MemoryStream(imageBytes),
ImageType.PNG);
ImageType type = imageSource.Type;