#include <Pt/Gfx/ImageFormat.h>
Image format.
Inherited by Argb32Format, Rgb16Format, Rgb32Format, and Yuv12Format.
Public Member Functions | |
| void | copy (Pixel &dst, const Pixel &src, size_t length, CompositionMode mode) const |
| Sets the color in a pixel span. | |
| void | copy (Pixel &dst, const ConstPixel &src, size_t length, CompositionMode mode) const |
| Sets the color in a pixel span. | |
| PT_GFX_API void | copy (ImageView &to, const Point &toPoint, const ImageView &from, const Rect &fromRect, CompositionMode mode) const |
| Copies an area of pixels. | |
| Color | getColor (const Pixel &pixel) const |
| Gets the pixel color. | |
| Color | getColor (const ConstPixel &pixel) const |
| Gets the pixel color. | |
| std::size_t | imageSize (const Size &size, Pt::ssize_t padding) const |
| Returns the size in bytes for a given image size. | |
| std::size_t | pixelStride () const |
| Returns distance in bytes between two pixel base pointers. | |
| void | setPixel (Pixel &to, const Pixel &from, CompositionMode mode) const |
| Sets the pixel color. | |
| void | setPixel (Pixel &to, const ConstPixel &from, CompositionMode mode) const |
| Sets the pixel color. | |
| void | setPixel (Pixel &to, const Color &c, CompositionMode mode) const |
| Sets the pixel color. | |
| void | setPixel (Pixel &to, const Pixel &from, CompositionMode mode, Pt::uint8_t blendingAlpha) const |
| Sets the pixel color with additional blending alhpa. | |
| void | setPixel (Pixel &to, const ConstPixel &from, CompositionMode mode, Pt::uint8_t blendingAlpha) const |
| Sets the pixel color with additional blending alhpa. | |
| void | setPixel (Pixel &to, const Color &c, CompositionMode mode, Pt::uint8_t blendingAlpha) const |
| Sets the pixel color with additional blending alhpa. | |
| void | setPixels (Pixel &to, const Pixel &from, size_t length, CompositionMode mode) const |
| Sets the pixels color. | |
| void | setPixels (Pixel &to, const ConstPixel &from, size_t length, CompositionMode mode) const |
| Sets the pixels color. | |
| void | setPixels (Pixel &to, const Color &c, size_t length, CompositionMode mode) const |
| Sets the pixels color. | |