Gets a comment field from a stream.
public RasterCommentMetadata ReadComment(Stream stream,int pageNumber,RasterCommentMetadataType type)
Public Overloads Function ReadComment( _ByVal stream As Stream, _ByVal pageNumber As Integer, _ByVal type As Leadtools.RasterCommentMetadataType _) As Leadtools.RasterCommentMetadata
public Leadtools.RasterCommentMetadata ReadComment(Stream stream,int pageNumber,Leadtools.RasterCommentMetadataType type)
- (nullable LTRasterCommentMetadata *)readCommentFromStream:(LTLeadStream *)streampageNumber:(NSInteger)pageNumbertype:(LTRasterCommentMetadataType)typeerror:(NSError **)error
public RasterCommentMetadata readComment(ILeadStream stream, int pageNumber, RasterCommentMetadataType type) function Leadtools.Codecs.RasterCodecs.ReadComment(Stream,Int32,RasterCommentMetadataType)(stream ,pageNumber ,type)
public:Leadtools.RasterCommentMetadata^ ReadComment(Stream^ stream,int pageNumber,Leadtools.RasterCommentMetadataType type)
stream
A Stream containing the input file data.
pageNumber
1-based index of the page from which to read the comment.
type
The type of comment. Refer to Types of File Comments.
A RasterCommentMetadata object containing the comment field information. If no such comment is found in the file, this method will return a null reference.
Some file formats can contain comments, and some cannot, and each file format has its own set of comment types. When you save a file, the comments in the RasterImage object can be saved in the file. The index into the array (specified using a constant) determines the type of comment.
You can use CommentsSupported to determine whether a certain file format supports tags.
To read all the comments stored in a file, use ReadComments.
For an example, refer to ReadComment.
Raster .NET | C API | C++ Class Library | JavaScript HTML5
Document .NET | C API | C++ Class Library | JavaScript HTML5
Medical .NET | C API | C++ Class Library | JavaScript HTML5
Medical Web Viewer .NET
