30 #ifndef PT_GFX_ARGB32FORMAT_H
31 #define PT_GFX_ARGB32FORMAT_H
33 #include <Pt/Gfx/Api.h>
34 #include <Pt/Gfx/ImageFormat.h>
40 class PT_GFX_API Argb32Format :
public ImageFormat
46 virtual void onSetPixel(Pixel& to,
const Pixel& from,
47 CompositionMode mode)
const;
49 virtual void onSetPixel(Pixel& to,
const ConstPixel& from,
50 CompositionMode mode)
const;
52 virtual void onSetPixel(Pixel& pixel,
const Color& c,
53 CompositionMode mode)
const;
55 virtual void onSetPixel(Pixel& to,
const Pixel& from,
56 CompositionMode mode,
Pt::uint8_t blendingAlpha)
const;
58 virtual void onSetPixel(Pixel& to,
const ConstPixel& from,
59 CompositionMode mode,
Pt::uint8_t blendingAlpha)
const;
61 virtual void onSetPixel(Pixel& pixel,
const Color& c,
62 CompositionMode mode,
Pt::uint8_t blendingAlpha)
const;
64 virtual void onSetPixels(Pixel& to,
const Pixel& from,
size_t length,
65 CompositionMode mode)
const;
67 virtual void onSetPixels(Pixel& to,
const ConstPixel& from,
size_t length,
68 CompositionMode mode)
const;
70 virtual void onSetPixels(Pixel& pixel,
const Color& c,
size_t length,
71 CompositionMode mode)
const;
73 virtual Color onGetColor(
const Pixel& pixel)
const;
75 virtual Color onGetColor(
const ConstPixel& pixel)
const;
77 virtual void onCopy(Pixel& dst,
const Pixel& src,
size_t length,
78 CompositionMode mode)
const;
80 virtual void onCopy(Pixel& dst,
const ConstPixel& src,
size_t length,
81 CompositionMode mode)
const;
83 virtual void onCopy(ImageView& to,
const Point& toPos,
84 const ImageView& from,
const Rect& fromRect,
85 CompositionMode mode)
const;
87 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