LEADTOOLS Image File Support (Leadtools.Codecs assembly) Send comments on this topic. | Back to Introduction - All Topics | Help Version 17.0.3.29
CodecsCompressDataCallback Delegate
See Also 
Leadtools.Codecs Namespace : CodecsCompressDataCallback Delegate



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.
Provides a callback method that gets called when compressed data is available.

Syntax

Visual Basic (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
Visual Basic (Usage)Copy Code
Dim instance As New CodecsCompressDataCallback(AddressOf HandlerMethod)
C# 
public delegate bool CodecsCompressDataCallback( 
   int width,
   int height,
   int bitsPerPixel,
   RasterByteOrder order,
   RasterViewPerspective viewPerspective,
   RasterNativeBuffer buffer
)
C++/CLI 
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.

Example

For an example, refer to RasterCodecs.StartCompress.

Remarks

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

Requirements

Target Platforms: Silverlight, Windows XP, Windows Server 2003 family, Windows Server 2008 family, Windows Vista, Windows 7, MAC OS/X (Intel Only)

See Also