|
AUI Framework
master
Cross-platform base for C++ UI apps
|
Same as AImageView but all universal AColor methods replaced with concrete specific AFormattedColor type thus can be used by performance critical code.
#include <AUI/Image/AImageView.h>
Public Types# | |
| using | Color = AFormattedColor<f> |
Public Types inherited from AImageView | |
| using | Color = AColor |
Public Member Functions# | |
| constexpr int | format () const noexcept |
| AFormattedImageView (AByteBufferView data, glm::uvec2 size) | |
| const Color & | get (glm::uvec2 position) const noexcept |
| const Color * | begin () const noexcept |
| const Color * | end () const noexcept |
| AColor | averageColor () const noexcept |
Public Member Functions inherited from AImageView | |
| AImageView (AByteBufferView data, glm::uvec2 size, APixelFormat format) | |
| AImageView (const AImage &v) | |
| AByteBufferView | buffer () const noexcept |
| glm::uvec2 | size () const noexcept |
| unsigned | width () const noexcept |
| unsigned | height () const noexcept |
| APixelFormat | format () const noexcept |
| std::uint8_t | bytesPerPixel () const noexcept |
| Color | get (glm::uvec2 position) const noexcept |
| Retrieves pixel color data. | |
| template<AImageViewVisitor Visitor> | |
| auto | visit (Visitor &&visitor) const |
| AImage | cropped (glm::uvec2 position, glm::uvec2 size) const |
| Crops the image, creating new image with the same format. | |
| Color | averageColor () const noexcept |
| const char & | rawDataAt (glm::uvec2 position) const noexcept |
| Retrieves reference to raw data at specified position. | |
| AImage | mirroredVertically () const |
| AImage | resizedLinearDownscale (glm::uvec2 newSize) const |
| AImage | convert (APixelFormat format) const |
| const char * | data () const noexcept |
| Shortcut to buffer().data(). | |
Static Public Attributes# | |
| static constexpr int | FORMAT = f |
Additional Inherited Members# | |
Protected Attributes inherited from AImageView | |
| AByteBufferView | mData |
| glm::uvec2 | mSize |
| APixelFormat | mFormat = APixelFormat::UNKNOWN |