←Select platform

CodecsCompressDataCallback Delegate

Summary
Provides a callback method that gets called when compressed data is available.
Syntax
C#
Objective-C
C++
Java
public delegate bool CodecsCompressDataCallback( 
   int width, 
   int height, 
   int bitsPerPixel, 
   RasterByteOrder order, 
   RasterViewPerspective viewPerspective, 
   RasterNativeBuffer buffer 
) 
typedef BOOL (^LTCodecsCompressDataCallback)(NSUInteger width, NSUInteger height, NSUInteger bitsPerPixel, LTRasterByteOrder order, LTRasterViewPerspective viewPerspective, unsigned char *data, NSUInteger dataLength)compress 
public boolean OnCodecsCompressDataCallback(int width, int height, int bitsPerPixel, RasterByteOrder order, RasterViewPerspective viewPerspective, RasterNativeBuffer buffer) 
public delegate bool CodecsCompressDataCallback(  
   int width, 
   int height, 
   int bitsPerPixel, 
   RasterByteOrder order, 
   RasterViewPerspective viewPerspective, 
   RasterNativeBuffer buffer 
) 

Parameters

width
The image being compressed width in pixels.

height
The image being compressed height in pixels.

bitsPerPixel
The image being compressed bits/pixel value.

order
The image being compressed byte order.

viewPerspective
The image being compressed view perspective value.

buffer
A pointer to the memory buffer containing compressed data.

Return Value

true to continue compressing the data, false to abort.

Remarks

The CodecsCompressDataCallback delegate is passed to RasterCodecs.StartCompress and will get called when compressed data is available.

Example

For an example, refer to RasterCodecs.StartCompress.

Requirements

Target Platforms

See Also

Reference

Leadtools.Codecs Namespace

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

Leadtools.Codecs Assembly

Products | Support | Contact Us | Intellectual Property Notices
© 1991-2022 LEAD Technologies, Inc. All Rights Reserved.