←Select platform

GetFormat(Stream) Method

Summary

Gets the format of the image in a stream.

Syntax

C#
VB
Java
Objective-C
WinRT C#
C++
public RasterImageFormat GetFormat( 
   Stream stream 
) 
Public Overloads Function GetFormat( _ 
   ByVal stream As Stream _ 
) As Leadtools.RasterImageFormat 
public Leadtools.RasterImageFormat GetFormat(  
   Stream stream 
) 
- (LTRasterImageFormat)formatOfStream:(LTLeadStream *)stream error:(NSError **)error 
public RasterImageFormat getFormat(ILeadStream stream) 
 function Leadtools.Codecs.RasterCodecs.GetFormat(Stream)(  
   stream  
) 
public: 
Leadtools.RasterImageFormat GetFormat(  
   Stream^ stream 
)  

Parameters

stream
A Stream containing the image data to query.

Return Value

The format of the image.

Remarks

GetInformation and GetFormat use GetInformation internally. So, if more information about the image is required, it is recommended to call GetInformation directly and obtain the data once.

Example

For an example, refer to Load(Stream stream, int pageNumber).

Requirements

Target Platforms

Help Version 19.0.2017.10.27
Products | Support | Contact Us | Copyright Notices
© 1991-2017 LEAD Technologies, Inc. All Rights Reserved.

Leadtools.Codecs Assembly