C# / .Net API Library Reference  4.3.2-74-ge1d4cca
Public Static Functions
ImageProcessing Class Reference

The ImageProcessing class is a utility class that provides image encoding methods.

Public Static Functions

static byte[] JpegEncode (BitmapData bitmapData, Size scaleToSize, int quality)
 
static byte[] JpegEncode (ImageData imageData, Size scaleToSize, int quality)
 
static byte[] PngEncode (BitmapData bitmapData, Size scaleToSize)
 
static byte[] PngEncode (ImageData imageData, Size scaleToSize)
 

Usage Description

static byte [] JpegEncode ( BitmapData  bitmapData,
Size  scaleToSize,
int  quality 
)
inlinestatic

The JpepEncode class encodes the specified image as a JFIF compliant stream of a JPEG encoded image. Returns a byte array containing the encoded image.

Parameters
bitmapDataThe image to encode
scaleToSizeThe size to scale the image down to
qualityThe JPEG quality (an integer between 0 and 100)
static byte [] JpegEncode ( ImageData  imageData,
Size  scaleToSize,
int  quality 
)
inlinestatic

The JpepEncode class encodes the specified image as a JFIF compliant stream of a JPEG encoded image. Returns a byte array containing the encoded image.

Parameters
imageDataThe image to encode
scaleToSizeThe size to scale the image down to
qualityThe JPEG quality (an integer between 0 and 100)
static byte [] PngEncode ( BitmapData  bitmapData,
Size  scaleToSize 
)
inlinestatic

The PngEncode class encodes the specified image as a PNG encoded image.

Parameters
bitmapDataThe image to encode.
scaleToSizeThe size to scale the image down to.
static byte [] PngEncode ( ImageData  imageData,
Size  scaleToSize 
)
inlinestatic

The PngEncode class encodes the specified image as a PNG encoded image.

Parameters
imageDataThe image to encode.
scaleToSizeThe size to scale the image down to.