Click or drag to resize

TxtDecoder Class

An implementation of the MultiFramedImageDecoder class allows to render TXT (text/plain) and XML (text/xml) file formats.
Inheritance Hierarchy

Namespace:  Atalasoft.dotImage.CommonDecoders
Assembly:  Atalasoft.dotImage.CommonDecoders (in Atalasoft.dotImage.CommonDecoders.dll) Version: 11.5.0.5.0.230 (.NET 4.6.2, x86)
Syntax
public class TxtDecoder : CommonTextFormatDecoder

The TxtDecoder type exposes the following members.

Constructors
  NameDescription
Public methodTxtDecoder
Initializes a new instance of the TxtDecoder class.
Top
Properties
  NameDescription
Public propertyPageSize
Gets or sets decoded image page size (width and height values). Default values: Height = 0, Width = 0.
(Overrides BaseCommonDecoderPageSize.)
Public propertyResolution
Gets or sets a value that specifies the DPI to use when rendering a document. Default value is 96.
(Inherited from BaseCommonDecoder.)
Public propertySupportedImageType Obsolete.
Returns the ImageType that the implemented decoder class supports.
(Inherited from ImageDecoder.)
Top
Methods
  NameDescription
Public methodEquals
Determines whether the specified object is equal to the current object.
(Inherited from Object.)
Protected methodFinalize
Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.
(Inherited from Object.)
Public methodGetFrameCount(Stream)
Returns the number of frames in the image
(Inherited from BaseCommonDecoder.)
Public methodGetFrameCount(String)
Returns the number of frames in the image
(Inherited from BaseCommonDecoder.)
Public methodGetHashCode
Serves as the default hash function.
(Inherited from Object.)
Public methodGetImageInfo(Stream)
Retrieve information from a file data stored in a Stream about the first frame.
(Inherited from CommonTextFormatDecoder.)
Public methodGetImageInfo(String)
Retrieve information from a file about the first frame.
(Inherited from CommonTextFormatDecoder.)
Public methodGetImageInfo(Stream, Int32)
Retrieve information from a file data stored in a Stream about specified frame.
(Inherited from CommonTextFormatDecoder.)
Public methodGetImageInfo(String, Int32)
Retrieve information from a file about specified frame.
(Inherited from CommonTextFormatDecoder.)
Public methodGetTextDocument(Stream)
Creates the text document.
(Inherited from BaseCommonTextFormatDecoder.)
Public methodGetTextDocument(String)
Creates the text document.
(Inherited from BaseCommonTextFormatDecoder.)
Public methodGetType
Gets the Type of the current instance.
(Inherited from Object.)
Public methodIsValidFormat(Stream)
Checks the stream to determine if the image can be read by the decoder that derives this class.
(Inherited from BaseCommonDecoder.)
Public methodIsValidFormat(String)
Checks the stream to determine if the image can be read by the decoder that derives this class.
(Inherited from BaseCommonDecoder.)
Protected methodMemberwiseClone
Creates a shallow copy of the current Object.
(Inherited from Object.)
Public methodRead(Stream, ProgressEventHandler)
Decode an image in a specified image Stream.
(Inherited from BaseCommonDecoder.)
Public methodRead(String, ProgressEventHandler)
Decode an image from file.
(Inherited from BaseCommonDecoder.)
Public methodRead(Stream, Int32, ProgressEventHandler)
Read a given frame in an encoded image using this decoder.
(Inherited from BaseCommonDecoder.)
Public methodRead(String, Int32, ProgressEventHandler)
Read a given frame from file using this decoder.
(Inherited from BaseCommonDecoder.)
Public methodToString
Returns a string that represents the current object.
(Inherited from Object.)
Top
Remarks
By default this decoder renders only 3000 pages. To extend this limit see the example section.
Examples
To configure page limit, you should add the next line to app.config file:
<Atalasoft>
    <CommonDecoders LimitsPageCount="3000"/>
    <!-- Components sections -->
    ...
</Atalasoft>
See Also