Skip to content

APixelFormat#

Pixel in-memory format descriptor (type, count and order of subpixel components).

Header:#include <AUI/Image/APixelFormat.h>
CMake:aui_link(my_target PUBLIC aui::image)

Public Types#

Value#


enum APixelFormat::Value

Examples#

examples/7guis/cells/src/Formula.h

7GUIs Cells - Spreadsheet processor (Excel).

    };

    using Value = std::variant<std::nullopt_t, double, AString, Range>;
    using Precompiled = std::function<formula::Value(const Spreadsheet& spreadsheet)>;
    formula::Value evaluate(const Spreadsheet& spreadsheet, const AString& expression);
    Precompiled precompile(const AString& expression);
}
examples/7guis/cells/src/Functions.h

7GUIs Cells - Spreadsheet processor (Excel).

namespace functions {
struct Ctx {
    const Spreadsheet& spreadsheet;
    AVector<formula::Value> args;
};
using Invocable = std::function<formula::Value(Ctx ctx)>;

const AMap<AString, Invocable>& predefined();
}
Constant Description
Value::UNKNOWN
Value::BYTE
Value::FLOAT
Value::R
Value::RG
Value::RGB
Value::RGBA
Value::ARGB
Value::BGRA
Value::RGB_BYTE
Value::RGBA_BYTE
Value::RGBA_FLOAT
Value::DEFAULT