Visual Basic (Declaration) | |
---|---|
Public Delegate Function CodecsCompressDataCallback( _ ByVal width As Integer, _ ByVal height As Integer, _ ByVal bitsPerPixel As Integer, _ ByVal order As RasterByteOrder, _ ByVal viewPerspective As RasterViewPerspective, _ ByVal data As IntPtr, _ ByVal dataLength As Integer _ ) As Boolean |
Visual Basic (Usage) | Copy Code |
---|---|
|
C# | |
---|---|
public delegate bool CodecsCompressDataCallback( int width, int height, int bitsPerPixel, RasterByteOrder order, RasterViewPerspective viewPerspective, IntPtr data, int dataLength ) |
Managed Extensions for C++ | |
---|---|
public: __gc __delegate bool CodecsCompressDataCallback( int width, int height, int bitsPerPixel, RasterByteOrder order, RasterViewPerspective viewPerspective, IntPtr data, int dataLength ) |
C++/CLI | |
---|---|
public delegate bool CodecsCompressDataCallback( int width, int height, int bitsPerPixel, RasterByteOrder order, RasterViewPerspective viewPerspective, IntPtr data, int dataLength ) |
Parameters
- width
- The image being compressed width in pixels.
- height
- The image being compressed height in pixels.
- bitsPerPixel
- The image being compressed bits/pixel value.
- order
- The image being compressed byte order.
- viewPerspective
- The image being compressed view perspective value.
- data
- A pointer to unmanaged memory buffer containing compressed data.
- dataLength
- The number of bytes in data.
For an example, refer to RasterCodecs.StartCompress.
The CodecsCompressDataCallback delegate is passed to
RasterCodecs.StartCompress and will get called compressed data is available.
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