Leadtools.Forms.DocumentReaders Namespace > DocumentReaderLoadOptions Class : RasterCodecsInstance Property |
public RasterCodecs RasterCodecsInstance {get; set;}
'Declaration Public Property RasterCodecsInstance As RasterCodecs
'Usage Dim instance As DocumentReaderLoadOptions Dim value As RasterCodecs instance.RasterCodecsInstance = value value = instance.RasterCodecsInstance
public: property RasterCodecs^ RasterCodecsInstance { RasterCodecs^ get(); void set ( RasterCodecs^ value); }
You can pass your own instance of a Leadtools.Codecs.RasterCodecs to DocumentReader.Create through this method. The DocumentReader object will then set this same Leadtools.Codecs.RasterCodecs into its DocumentReader.RasterCodecsInstance property and use it when rendering or creating thumbnails of the document pages. If you pass a valid object, then you must make sure the instance stays alive for the entire lifespan of the DocumentReader object.
If you leave this value to the default of null, then the DocumentReader will create its own default Leadtools.Codecs.RasterCodecs object and set it in the DocumentReader.RasterCodecsInstance property.
You can use your own instance to control the load options or subscribe to the various events of Leadtools.Codecs.RasterCodecs.
For an example, refer to DocumentReaderLoadOptions.