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

Compress(IntPtr) Method






Pointer to unmanaged memory that holds the data to be compressed.
Does buffer-to-buffer JPEG or LEAD CMP compression using an unmanaged memory buffer. .NET support WinRT support
Syntax
public void Compress( 
   IntPtr data
)
'Declaration
 
Public Overloads Sub Compress( _
   ByVal data As IntPtr _
) 
'Usage
 
Dim instance As RasterCodecs
Dim data As IntPtr
 
instance.Compress(data)
public void Compress( 
   IntPtr data
)
 function Leadtools.Codecs.RasterCodecs.Compress(IntPtr)( 
   data 
)
public:
void Compress( 
   IntPtr data
) 

Parameters

data
Pointer to unmanaged memory that holds the data to be compressed.
Remarks
You must call StartCompress(Int32,Int32,Int32,RasterByteOrder,RasterViewPerspective,Int32,Byte[],Int32,Int32,CodecsCompression,CodecsCompressDataCallback) before using this method, and you must call StopCompress to end the compression process. For a description of how these methods work together, refer to StartCompress(Int32,Int32,Int32,RasterByteOrder,RasterViewPerspective,Int32,Byte[],Int32,Int32,CodecsCompression,CodecsCompressDataCallback).
Example
For an example, refer to StartCompress(Int32,Int32,Int32,RasterByteOrder,RasterViewPerspective,Int32,Byte[],Int32,Int32,CodecsCompression,CodecsCompressDataCallback).
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
Compressing and Decompressing Buffers
Speeding Up 1-Bit Documents

 

 


Products | Support | Contact Us | Copyright Notices

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