←Select platform

GetOptimizedLoadData(bool) Method

Summary

Gets the current optimized load data.

Syntax
C#
VB
C++
public CodecsOptimizedLoadData GetOptimizedLoadData( 
    bool allowUnmanagedData 
) 
Public Function GetOptimizedLoadData( 
   ByVal allowUnmanagedData As Boolean 
) As CodecsOptimizedLoadData 
public:  
   CodecsOptimizedLoadData^ GetOptimizedLoadData( 
      bool allowUnmanagedData 
   ) 

Parameters

allowUnmanagedData

Set to true to get managed (flat) or unmanaged(non-flat) load data.

Set to false to get only managed (flat) load data.

Return Value

CodecsOptimizedLoadData object containing the current optimize load data being used by this RasterCodecs object or null if the current RasterCodecs object is not using optimize load, or the last file format used does not support it, or the optimized load data is not compatible with the allowUnmanagedData parameter.

If the file format uses non-flat (unmanaged) load data:

If the file format uses flat managed load data, both GetOptimizedLoadData(true) and GetOptimizedLoadData(false) will return a CodecsOptimizedLoadData.

Remarks

Important note: unmanaged or non-flat filter data is still owned by the RasterCodecs object. This means that the object returned by this method might be disposed if you load or obtain information about another file. You can take ownership of this object by calling DetachOptimizedLoadData.

GetOptimizedLoadData() is equivalent to GetOptimizedLoadData(false).

For more information, refer to Using the OptimizedLoad Functions to Speed Loading Large Files.

Requirements

Target Platforms

Help Version 20.0.2020.4.3
Products | Support | Contact Us | Intellectual Property Notices
© 1991-2020 LEAD Technologies, Inc. All Rights Reserved.

Leadtools.Codecs Assembly