'Declaration
Public Overloads Function Convert( _ ByVal destFormat As NPixelFormat, _ ByVal destStride As System.Integer, _ ByVal copySource As System.Boolean _ ) As NRaster
'Usage
Dim instance As NRaster Dim destFormat As NPixelFormat Dim destStride As System.Integer Dim copySource As System.Boolean Dim value As NRaster value = instance.Convert(destFormat, destStride, copySource)
public NRaster Convert( NPixelFormat destFormat, System.int destStride, System.bool copySource )
Parameters
- destFormat
- The target pixel format of the destination raster.
- destStride
- The stride of the destination raster (in bytes).
- copySource
- Specifies wheteher a copy of this raster must be returned in case that conversion is not necessary.
Return Value
Returns a NRaster object containing the image data from the current raster, but converted to the pixel format specified by destFormat and using the stride specified by destStride. If there is no need for actual conversions and copySource is set to false - then a reference to the current raster is returned.