Leadtools.Codecs Namespace > RasterCodecs Class : StartRedirecting Method |
LEADTOOLS I/O redirection allows you to replace the default input/output methods for opening, reading, writing, seeking, and closing files.
For example, you can redirect all the library I/O methods to your own I/O methods to load/save images from your own streams.
Once you call StartRedirecting, all subsequent file I/O operation will fire the following events:
Event | Operation |
---|---|
RedirectOpen | When the toolkit is trying to open a file |
RedirectRead | When the toolkit is trying to reading from a file |
RedirectWrite | When the toolkit is trying to writing to a file |
RedirectSeek | When the toolkit is trying to seeking into a file |
RedirectClose | When the toolkit is trying to closing a file |
Call StopRedirecting to reset the I/O methods back to the defaults.
Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2