The following table lists .NET functions and provides cross-references to their COM counterparts:
.Net Syntax | COM Interop Syntax | Related Properties, Events |
byte[] OptimizeBuffer(RasterCodecs codecs, byte[] buffer, int offset, int length, ImageOptimizerOptions options, ImageOptimizerProgress progressCallback) | void IImageOptimizer.OptimizeBuffer(LTDCodecsInterop.RasterCodecs codecs, Int32 offset, Int32 length, LTDImageOptimizationInterop.ImageOptimizerOptions options) | EnableEvent.DisableEvent, void OnImageOptimizerProgress(int percent); LTDInterop.IByteIndexProperty IImageOptimizer.BufferToOptimize, Int32 IImageOptimizer.BufferToOptimizeCount, LTDInterop.IByteIndexProperty IImageOptimizer.OptimizedBuffer, Int32 IImageOptimizer.OptimizedBufferCount |
LTDInterop.IByteIndexProperty IImageOptimizer.BufferToOptimize | Int32 IImageOptimizer.BufferToOptimizeCount | |
Int32 IImageOptimizer.BufferToOptimizeCount | LTDInterop.IByteIndexProperty IImageOptimizer.BufferToOptimize | |
LTDInterop.IByteIndexProperty IImageOptimizer.OptimizedBuffer | Int32 IImageOptimizer.OptimizedBufferCount | |
Int32 IImageOptimizer.OptimizedBufferCount | LTDInterop.IByteIndexProperty IImageOptimizer.OptimizedBuffer | |
void OptimizeDirectory(RasterCodecs codecs, string inputDirectory, string outputDirectory, ImageOptimizerOptions options, string fileExtensions, bool includeSubDirectories, ImageOptimizerDirectory directoryCallback) | void IImageOptimizer.OptimizeDirectory(LTDCodecsInterop.RasterCodecs codecs, String inputDirectory, String outputDirectory, LTDImageOptimizationInterop.ImageOptimizerOptions options, String fileExtensions, Boolean includeSubDirectories) | EnableEvent, DisableEvent, void OnImageOptimizerDirectory(LTDImageOptimizationInterop.ImageOptimizerDirectoryData data); |
The following topics provide comparisons between COM functions and their .NET counterparts: