LEADTOOLS Image File Support (Leadtools.Codecs assembly)

CodecsCompressDataCallback Delegate

Show in webframe







The image being compressed width in pixels.
The image being compressed height in pixels.
The image being compressed bits/pixel value.
The image being compressed byte order.
The image being compressed view perspective value.
A pointer to the memory buffer containing compressed data.
Provides a callback method that gets called when compressed data is available.
Syntax
public delegate bool CodecsCompressDataCallback( 
   int width,
   int height,
   int bitsPerPixel,
   RasterByteOrder order,
   RasterViewPerspective viewPerspective,
   RasterNativeBuffer buffer
)
'Declaration
 
Public Delegate Function CodecsCompressDataCallback( _
   ByVal width As Integer, _
   ByVal height As Integer, _
   ByVal bitsPerPixel As Integer, _
   ByVal order As RasterByteOrder, _
   ByVal viewPerspective As RasterViewPerspective, _
   ByVal buffer As RasterNativeBuffer _
) As Boolean
'Usage
 
Dim instance As New CodecsCompressDataCallback(AddressOf HandlerMethod)
public delegate bool CodecsCompressDataCallback( 
   int width,
   int height,
   int bitsPerPixel,
   RasterByteOrder order,
   RasterViewPerspective viewPerspective,
   RasterNativeBuffer buffer
)
typedef BOOL (^LTCodecsCompressDataCallback)(unsigned int width, unsigned int height, unsigned int bitsPerPixel, LTRasterByteOrder order, LTRasterViewPerspective viewPerspective, unsigned char* data, size_t dataLength);

            
CodecsCompressDataCallback( 
   width ,
   height ,
   bitsPerPixel ,
   order ,
   viewPerspective ,
   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 compressed data is available.
Example
For an example, refer to RasterCodecs.StartCompress.
Requirements

Target Platforms

See Also

Reference

CodecsCompressDataCallback Members
Leadtools.Codecs Namespace

 

 


Products | Support | Contact Us | Copyright Notices
© 2006-2014 All Rights Reserved. LEAD Technologies, Inc.