[]
        
(Showing Draft Content)

GrapeCity.ActiveReports.Core.Document.Utility.ImageHelper.GetImageFormat

GetImageFormat Method

GetImageFormat(BinaryReader)

Reads the image format from the given binary stream by inspecting the header bytes.

Declaration
public static ImageFormat GetImageFormat(BinaryReader reader)
Parameters
Type Name Description
BinaryReader reader

A BinaryReader positioned at the start of the image data.

Returns
Type Description
ImageFormat

The detected ImageFormat.