LEADTOOLS Image File Support (Leadtools.Codecs assembly)
LEAD Technologies, Inc

CodecsTransformMarkerCallback Delegate






ID of the JPEG marker. The JPEG markers are uniquely identified by a byte value. Possible values are 1 to 254. (0 and 255 are not allowed.)
A pointer to the memory buffer containing the marker data. RasterNativeBuffer.Length contains the size in bytes of the JPEG marker. The size will be less than 65535. If this value is 0, then the marker does not have any extra data and buffer should be ignored.
Flags that indicate the transform to be performed. These are the same flags passed to the RasterCodecs.Transform method.
Handles the processing of every JPEG marker present in the file transformed by RasterCodecs.Transform. .NET support WinRT support
Syntax
public delegate CodecsTransformMarkerAction CodecsTransformMarkerCallback( 
   int id,
   RasterNativeBuffer buffer,
   CodecsTransformFlags transform
)
'Declaration
 
Public Delegate Function CodecsTransformMarkerCallback( _
   ByVal id As Integer, _
   ByVal buffer As RasterNativeBuffer, _
   ByVal transform As CodecsTransformFlags _
) As CodecsTransformMarkerAction
'Usage
 
Dim instance As New CodecsTransformMarkerCallback(AddressOf HandlerMethod)
public delegate CodecsTransformMarkerAction CodecsTransformMarkerCallback( 
   int id,
   RasterNativeBuffer buffer,
   CodecsTransformFlags transform
)
CodecsTransformMarkerCallback( 
   id ,
   buffer ,
   transform 
)
public delegate CodecsTransformMarkerAction CodecsTransformMarkerCallback( 
   int id,
   RasterNativeBuffer buffer,
   CodecsTransformFlags transform
)

Parameters

id
ID of the JPEG marker. The JPEG markers are uniquely identified by a byte value. Possible values are 1 to 254. (0 and 255 are not allowed.)
buffer
A pointer to the memory buffer containing the marker data. RasterNativeBuffer.Length contains the size in bytes of the JPEG marker. The size will be less than 65535. If this value is 0, then the marker does not have any extra data and buffer should be ignored.
transform
Flags that indicate the transform to be performed. These are the same flags passed to the RasterCodecs.Transform method.

Return Value

A CodecsTransformMarkerAction enumeration member that determines the action taken by the RasterCodecs after the callback is called. Possible values are:

Value Description
CodecsTransformMarkerAction.Default Successful. The default processing for this marker can be performed
CodecsTransformMarkerAction.Ignore Successful. Do not process this marker and do not write it to the file
CodecsTransformMarkerAction.Abort Abort the process and do not transform anymore markers
Example
For an example, refer to RasterCodecs.Transform.
Requirements

Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

See Also

Reference

CodecsTransformMarkerCallback Members
Leadtools.Codecs Namespace

 

 


Products | Support | Contact Us | Copyright Notices

© 2006-2012 All Rights Reserved. LEAD Technologies, Inc.