Visual Basic (Declaration) | |
---|---|
Public Overloads Sub Convert( _ ByVal srcBuffer As IntPtr, _ ByVal srcBufferOffset As Integer, _ ByVal destBuffer As IntPtr, _ ByVal destBufferOffset As Integer, _ ByVal width As Integer, _ ByVal height As Integer, _ ByVal inAlign As Integer, _ ByVal outAlign As Integer _ ) |
Visual Basic (Usage) | Copy Code |
---|---|
|
C# | |
---|---|
public void Convert( IntPtr srcBuffer, int srcBufferOffset, IntPtr destBuffer, int destBufferOffset, int width, int height, int inAlign, int outAlign ) |
Managed Extensions for C++ | |
---|---|
public: void Convert( IntPtr srcBuffer, int srcBufferOffset, IntPtr destBuffer, int destBufferOffset, int width, int height, int inAlign, int outAlign ) |
C++/CLI | |
---|---|
public: void Convert( IntPtr srcBuffer, int srcBufferOffset, IntPtr destBuffer, int destBufferOffset, int width, int height, int inAlign, int outAlign ) |
Parameters
- srcBuffer
- A pointer to a buffer containing the input data.
- srcBufferOffset
- Offset to the first byte of the srcBuffer data buffer.
- destBuffer
- A pointer to a buffer that will hold the converted data.
- destBufferOffset
- Offset to the first byte of the destBuffer data buffer.
- width
- Width of pixels to be processed.
- height
- Height of pixels to be processed.
- inAlign
- Each scanline in the input buffer is a multiple of inAlign bytes.
- outAlign
- Each scan line in the output buffer is a multiple of outAlign bytes.
For an example, refer to RasterColorConverter.Startup.
For more information about Alignment Parameters, refer to Alignment Parameters.
For more information about Alignment Parameters, refer to Alignment Parameters.
Conversion is done by setting the active method value specified in ActiveMethod property.
To change the active method, use RasterColorConverter.SetParameters method.
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