BLImageCodec Class Referencefinal

Image codec [C++ API].

Provides a unified interface for inspecting image data and creating image decoders & encoders.

Member Functions

Construction & Destruction
Overloaded Operators
Common Functionality
Accessors
Properties
Find Functionality
Codec Functionality

Static Functions

Built-In Codecs

Additional Inherited Members

- Public Attributes inherited from BLObjectCore

Member Function Documentation

bool BLImageCodec::isValid() const◆ 

Tests whether the image codec is a built-in null instance.

const BLString& BLImageCodec::name() const◆ 

Returns image codec name (i.e, "PNG", "JPEG", etc...).

const BLString& BLImageCodec::vendor() const◆ 

Returns the image codec vendor (i.e. "Blend2D" for all built-in codecs).

const BLString& BLImageCodec::mimeType() const◆ 

Returns a mime-type associated with the image codec's format.

const BLString& BLImageCodec::extensions() const◆ 

Returns a list of file extensions used to store image of this codec, separated by '|' character.

BLImageCodecFeatures BLImageCodec::features() const◆ 

Returns image codec flags, see BLImageCodecFeatures.

bool BLImageCodec::hasFeature(BLImageCodecFeatures feature) const◆ 

Tests whether the image codec has a flag flag.

BLResult BLImageCodec::getProperty(const char* name, BLVarCore& valueOut) const[1/2]◆ 

Gets a property of the given name and assigns it to an initialized valueOut.

BLResult BLImageCodec::getProperty(BLStringView name, BLVarCore& valueOut) const[2/2]◆ 

This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.

BLResult BLImageCodec::setProperty(const char* name, const BLObjectCore& value)[1/2]◆ 

Sets a property of the given name to value.

BLResult BLImageCodec::setProperty(BLStringView name, const BLObjectCore& value)[2/2]◆ 

This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.