Leadtools.Codecs Send comments on this topic. | Back to Introduction - All Topics | Help Version 15.12.17
CodecsTransformMarkerCallback Delegate
See Also 
Leadtools.Codecs Namespace : CodecsTransformMarkerCallback Delegate




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.)
data
A pointer to the unmanaged memory buffer containing the marker data. This parameter is valid only if dataLength is > 0.
dataLength
Size in bytes of the JPEG marker (data). The size will be less than 65535. If this value is 0, then the marker does not have any extra data and data should be ignored.
transform
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.

Syntax

Visual Basic (Declaration) 
Public Delegate Function CodecsTransformMarkerCallback( _
   ByVal id As Integer, _
   ByVal data As IntPtr, _
   ByVal dataLength As Integer, _
   ByVal transform As CodecsTransformFlags _
) As CodecsTransformMarkerAction
Visual Basic (Usage)Copy Code
Dim instance As New CodecsTransformMarkerCallback(AddressOf HandlerMethod)
C# 
public delegate CodecsTransformMarkerAction CodecsTransformMarkerCallback( 
   int id,
   IntPtr data,
   int dataLength,
   CodecsTransformFlags transform
)
Managed Extensions for C++ 
public: __gc __delegate CodecsTransformMarkerAction CodecsTransformMarkerCallback( 
   int id,
   IntPtr data,
   int dataLength,
   CodecsTransformFlags transform
)
C++/CLI 
public delegate CodecsTransformMarkerAction CodecsTransformMarkerCallback( 
   int id,
   IntPtr data,
   int dataLength,
   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.)
data
A pointer to the unmanaged memory buffer containing the marker data. This parameter is valid only if dataLength is > 0.
dataLength
Size in bytes of the JPEG marker (data). The size will be less than 65535. If this value is 0, then the marker does not have any extra data and data should be ignored.
transform
Flags that indicate the transform to be performed. These are the same flags passed to the RasterCodecs.Transform method.

Example

For an example, refer to RasterCodecs.Transform.

Requirements

Target Platforms: Microsoft .NET Framework 2.0, Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family

See Also