Handles the processing of every JPEG marker present in the file transformed by RasterCodecs.Transform.
public delegate CodecsTransformMarkerAction CodecsTransformMarkerCallback(
int id,
RasterNativeBuffer buffer,
CodecsTransformFlags transform
)
Public Delegate Function CodecsTransformMarkerCallback( _
ByVal id As Integer, _
ByVal buffer As RasterNativeBuffer, _
ByVal transform As CodecsTransformFlags _
) As CodecsTransformMarkerAction
typedef LTCodecsTransformMarkerAction (^LTCodecsTransformMarkerCallback)(NSInteger markerId, unsigned char *buffer, NSUInteger length, LTCodecsTransformFlags transform)
public CodecsTransformMarkerAction OnCodecsTransformMarkerCallback(int id, RasterNativeBuffer buffer, CodecsTransformFlags transform)
public delegate CodecsTransformMarkerAction CodecsTransformMarkerCallback(
int id,
RasterNativeBuffer buffer,
CodecsTransformFlags transform
)
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.
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 |
Help Collections
Raster .NET | C API | C++ Class Library | HTML5 JavaScript
Document .NET | C API | C++ Class Library | HTML5 JavaScript
Medical .NET | C API | C++ Class Library | HTML5 JavaScript
Medical Web Viewer .NET
Multimedia
Direct Show .NET | C API | Filters
Media Foundation .NET | C API | Transforms
Supported Platforms
.NET, Java, Android, and iOS/macOS Assemblies
Imaging, Medical, and Document
C API/C++ Class Libraries
Imaging, Medical, and Document
HTML5 JavaScript Libraries
Imaging, Medical, and Document