Namespace: Rx::Codec – Class: CJpg – Header: Rx.Codec/Jpg.h

CJpg Class

C++
#include "Rx.Codec/Jpg.h"
class CJpg : public IImageCodec

JPG Codec.

Constructors

CJpg()

Default constructor.

Destructor

~CJpg()

Destructor.

Methods

Encode(pTrgMem, xSrcImg)

Encodes the image pSrcImg and store the encoded data in pTrgMem. Works only with:

Decode(xTrgImg, pSrcMem)

Decodes the data in pSrcMem and store the decoded image in pTrgImg. Works only with:

GetCodecName()

Gets the codec name.

Encode(trgMemory, srcImg)

Encodes the given image and stores the encoded data in the given memory.

Decode(trgImg, srcMemory)

Decodes the data in the given memory and stores the result in the given image.

SetQuality(iQuality)

Sets the quality of the image. 0 - 100.