30 #ifndef PT_GFX_RGB32FORMAT_H
31 #define PT_GFX_RGB32FORMAT_H
33 #include <Pt/Gfx/Api.h>
34 #include <Pt/Gfx/ImageFormat.h>
35 #include <Pt/Gfx/Color.h>
41 class PT_GFX_API Rgb32Format :
public ImageFormat
47 virtual void onSetPixel(Pixel& to,
const Pixel& from,
48 CompositionMode mode)
const;
50 virtual void onSetPixel(Pixel& to,
const ConstPixel& from,
51 CompositionMode mode)
const;
53 virtual void onSetPixel(Pixel& pixel,
const Color& c,
54 CompositionMode mode)
const;
56 virtual void onSetPixel(Pixel& to,
const Pixel& from,
57 CompositionMode mode,
Pt::uint8_t blendingAlpha)
const;
59 virtual void onSetPixel(Pixel& to,
const ConstPixel& from,
60 CompositionMode mode,
Pt::uint8_t blendingAlpha)
const;
62 virtual void onSetPixel(Pixel& pixel,
const Color& c,
63 CompositionMode mode,
Pt::uint8_t blendingAlpha)
const;
65 virtual void onSetPixels(Pixel& to,
const Pixel& from,
size_t length,
66 CompositionMode mode)
const;
68 virtual void onSetPixels(Pixel& to,
const ConstPixel& from,
size_t length,
69 CompositionMode mode)
const;
71 virtual void onSetPixels(Pixel& pixel,
const Color& c,
size_t length,
72 CompositionMode mode)
const;
74 virtual Color onGetColor(
const Pixel& pixel)
const;
76 virtual Color onGetColor(
const ConstPixel& pixel)
const;
78 virtual void onCopy(Pixel& dst,
const Pixel& src,
size_t length,
79 CompositionMode mode)
const;
81 virtual void onCopy(Pixel& dst,
const ConstPixel& src,
size_t length,
82 CompositionMode mode)
const;
84 virtual void onCopy(ImageView& to,
const Point& toPos,
85 const ImageView& from,
const Rect& fromRect,
86 CompositionMode mode)
const;
88 virtual std::size_t onImageSize(
const Size& size, Pt::ssize_t padding)
const;
uint_type uint8_t
Unsigned 8-bit integer type.
Definition: Types.h:18