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

WriteTransformMarker(Int32,IntPtr,Int32) Method






The id of the metadata marker.
A pointer to unmanaged memory buffer containing the data for the metadata marker.
Number of bytes to read from data.
Controls how the transform markers are used when performing a lossless transformation for certain formats. .NET support
Syntax
public void WriteTransformMarker( 
   int id,
   IntPtr data,
   int dataLength
)
'Declaration
 
Public Overloads Sub WriteTransformMarker( _
   ByVal id As Integer, _
   ByVal data As IntPtr, _
   ByVal dataLength As Integer _
) 
'Usage
 
Dim instance As RasterCodecs
Dim id As Integer
Dim data As IntPtr
Dim dataLength As Integer
 
instance.WriteTransformMarker(id, data, dataLength)
public void WriteTransformMarker( 
   int id,
   IntPtr data,
   int dataLength
)
 function Leadtools.Codecs.RasterCodecs.WriteTransformMarker(Int32,IntPtr,Int32)( 
   id ,
   data ,
   dataLength 
)
public:
void WriteTransformMarker( 
   int id,
   IntPtr data,
   int dataLength
) 

Parameters

id
The id of the metadata marker.
data
A pointer to unmanaged memory buffer containing the data for the metadata marker.
dataLength
Number of bytes to read from data.
Remarks

You should use this method to write a certain marker data into the file.

This method can be called only from within the CodecsTransformMarkerCallback passed to the Transform method.

The transform mechanism is as follows:

Note: You can also use WriteTransformMarker(Int32,Byte[],Int32,Int32) to insert your own markers. The marker will be inserted before the current marker. You can call WriteTransformMarker(Int32,Byte[],Int32,Int32) as many times as you wish. Every call to WriteTransformMarker(Int32,Byte[],Int32,Int32) will insert a new marker.

Warning: Incorrect handling of the markers will generate corrupt files! Since some markers contain important information about the image (image width, height, compression method, colorspace, etc), you should use caution when working with markers.

Example
For an example, refer to 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

RasterCodecs Class
RasterCodecs Members
Overload List

 

 


Products | Support | Contact Us | Copyright Notices

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