Leadtools.Codecs Namespace > RasterCodecs Class > GetFormat Method : GetFormat(String) Method |
public RasterImageFormat GetFormat( string fileName )
'Declaration Public Overloads Function GetFormat( _ ByVal fileName As String _ ) As RasterImageFormat
'Usage Dim instance As RasterCodecs Dim fileName As String Dim value As RasterImageFormat value = instance.GetFormat(fileName)
public RasterImageFormat GetFormat( string fileName )
function Leadtools.Codecs.RasterCodecs.GetFormat(String)( fileName )
public: RasterImageFormat GetFormat( String^ fileName )
GetInformation(String,Boolean) and GetFormat(String) use GetInformation(String,Boolean) internally. So, if more information about the image is required, it is recommended to call GetInformation(String,Boolean) directly and obtain the data once.
For an example, refer to Load(string fileName, int pageNumber).