public NImageData GetEncodedData( NImageFormat preferredFormat, NImageEncoderSettings encoderSettings )
Parameters
- preferredFormat
- Specifies the format to be used when encoding the original image data (in case it is in decoded form). If this parameter is set to null, the method encodes the original raster in PNG format.
- encoderSettings
- If the original image data is in encoded form, this parameter is ignored. If the original image data is in decoded form, the method uses the specified encoder settings to encode the data.
Return Value
Returns encoded image data.