11#define PT_GFX_VERSION_MAJOR PT_VERSION_MAJOR
12#define PT_GFX_VERSION_MINOR PT_VERSION_MINOR
13#define PT_GFX_VERSION_REVISION PT_VERSION_REVISION
14#define PT_GFX_VERSION_PRERELEASE PT_VERSION_PRERELEASE
16#if defined(PT_GFX_API_EXPORT)
17# define PT_GFX_API PT_EXPORT
19# define PT_GFX_API PT_IMPORT
32typedef std::ptrdiff_t Int;
35const Float FloatNearlyZero = Float(1) / (1 << 12);
53template <
typename FormatT>
56template <
typename FormatT,
typename TraitsT = ImageTraits<FormatT> >
59template <
typename FormatT,
typename TraitsT = ImageTraits<FormatT> >
62template <
typename FormatT,
typename TraitsT = ImageTraits<FormatT>>
65template <
typename FormatT,
typename TraitsT = ImageTraits<FormatT>>
68template <
typename FormatT,
typename TraitsT = ImageTraits<FormatT> >
71template <
typename FormatT,
typename TraitsT = ImageTraits<FormatT> >
72class BasicConstPixelView;
74template <
typename FormatT,
typename TraitsT = ImageTraits<FormatT> >
77template <
typename FormatT,
typename TraitsT = ImageTraits<FormatT> >
78class BasicConstLineView;
80template <
typename FormatT,
typename TraitsT = ImageTraits<FormatT> >
83template <
typename FormatT,
typename TraitsT = ImageTraits<FormatT> >
92template <
typename ColorT>
95template <
typename ColorT>
107typedef BasicPixelView<ImageFormat> PixelView;
109typedef BasicConstPixelView<ImageFormat> ConstPixelView;
111typedef BasicLineView<ImageFormat> LineView;
113typedef BasicConstLineView<ImageFormat> ConstLineView;
115typedef Span<ImageFormat> ImageSpan;
117typedef ConstSpan<ImageFormat> ConstImageSpan;
130typedef BasicPixelView<ImageFormat, ImageTraitsF> PixelViewF;
132typedef BasicConstPixelView<ImageFormat, ImageTraitsF> ConstPixelViewF;
134typedef BasicLineView<ImageFormat, ImageTraitsF> LineViewF;
136typedef BasicConstLineView<ImageFormat, ImageTraitsF> ConstLineViewF;
138typedef Span<ImageFormat, ImageTraitsF> ImageSpanF;
140typedef ConstSpan<ImageFormat, ImageTraitsF> ConstImageSpanF;
Read-only cursor to one ARGB-32 pixel.
Definition Argb32.h:140
ARGB-32 image.
Definition Api-Argb32Image.h:30
Cursor to one ARGB-32 pixel.
Definition Argb32.h:53
ARGB-32 image format.
Definition Argb32.h:220
Read-only wrap of pixel data.
Definition Image.h:189
Read-only image region.
Definition View.h:125
Image that owns or wraps pixel data.
Definition Image.h:83
Non-owning image region.
Definition View.h:65
Backend that executes drawing commands.
Definition Canvas.h:66
Floating-point RGBA color.
Definition Color.h:173
8-bit ARGB color.
Definition Color.h:65
Read-only cursor to one pixel.
Definition ImageFormat.h:345
Ascent, descent and line height of a font.
Definition FontMetrics.h:50
Target for drawing operations.
Definition PaintSurface.h:66
Pen, brush, font and composition mode.
Definition Paint.h:53
Drawing commands and paint state.
Definition PainterBase.h:85
Painter for a surface or a paint context.
Definition Painter.h:62
Cursor to one pixel.
Definition ImageFormat.h:219
RGB-565 const pixel.
Definition Rgb16.h:190
RGB-565 pixel.
Definition Rgb16.h:101
RGB-565 image format.
Definition Rgb16.h:270
Premultiplied ARGB-32 const pixel.
Definition Rgb32.h:226
Premultiplied ARGB-32 image.
Definition Api-Rgb32Image.h:31
RGB-32 pixel as premultiplied ARGB-32.
Definition Rgb32.h:125
Premultiplied ARGB-32 image format.
Definition Rgb32.h:315
Width and bounds of a text run.
Definition TextMetrics.h:49
YV12 const pixel.
Definition Yuv12.h:137
YV-12 pixel.
Definition Yuv12.h:44
YV-12 image format.
Definition Yuv12.h:234
Graphics and imaging services.
Definition Api-Argb32Image.h:12
BasicConstView< Rgb32 > Rgb32ConstView
RGB-32 const view.
Definition Api.h:256
BasicView< Rgb32 > Rgb32View
RGB-32 view.
Definition Api.h:252
BasicView< Yuv12 > Yuv12ConstView
YUV-12 conmst view.
Definition Api.h:304
Span< Rgb16 > Rgb16Span
RGB-16 span.
Definition Api.h:230
ConstSpan< Rgb32 > Rgb32ConstSpan
RGB-32 const span.
Definition Api.h:280
ConstSpan< Argb32 > Argb32ConstSpan
ARGB-32 const span.
Definition Api.h:186
BasicPixelView< Rgb32 > Rgb32PixelView
RGB-32 pixel view.
Definition Api.h:260
ConstSpan< Rgb16 > Rgb16ConstSpan
RGB-16 const span.
Definition Api.h:234
BasicLineView< Rgb32 > Rgb32LineView
RGB-32 line view.
Definition Api.h:268
BasicLineView< Yuv12 > Yuv12LineView
YUV-12 line view.
Definition Api.h:316
BasicPixelView< Rgb16 > Rgb16PixelView
RGB-16 pixel view.
Definition Api.h:214
BasicConstImage< Argb32 > Argb32ConstImage
ARGB-32 const image.
Definition Api.h:154
BasicConstPixelView< Argb32 > Argb32ConstPixelView
ARGB-32 const pixel view.
Definition Api.h:170
BasicImage< Rgb16 > Rgb16Image
RGB-16 image.
Definition Api.h:198
BasicPixelView< Argb32 > Argb32PixelView
ARGB-32 pixel view.
Definition Api.h:166
BasicConstImage< Yuv12 > Yuv12ConstImage
YUV-12 const image.
Definition Api.h:296
BasicConstLineView< Rgb16 > Rgb16ConstLineView
RGB-16 const line view.
Definition Api.h:226
BasicImage< Yuv12 > Yuv12Image
YUV-12 image.
Definition Api.h:292
BasicView< Yuv12 > Yuv12View
YUV-12 view.
Definition Api.h:300
BasicConstLineView< Rgb32 > Rgb32ConstLineView
RGB-32 const line view.
Definition Api.h:272
Span< Argb32 > Argb32Span
ARGB-32 span.
Definition Api.h:182
BasicConstPixelView< Rgb16 > Rgb16ConstPixelView
RGB-16 const pixel view.
Definition Api.h:218
BasicConstPixelView< Rgb32 > Rgb32ConstPixelView
RGB-32 const pixel view.
Definition Api.h:264
Span< Rgb32 > Rgb32Span
RGB-32 span.
Definition Api.h:276
ConstSpan< Yuv12 > Yuv12ConstSpan
YUV-12 const span.
Definition Api.h:328
BasicConstLineView< Yuv12 > Yuv12ConstLineView
YUV-12 const line view.
Definition Api.h:320
BasicConstImage< Rgb16 > Rgb16ConstImage
RGB-16 const image.
Definition Api.h:202
BasicView< Rgb16 > Rgb16View
RGB-16 view.
Definition Api.h:206
BasicConstView< Rgb16 > Rgb16ConstView
RGB-16 const view.
Definition Api.h:210
Span< Yuv12 > Yuv12Span
YUV-12 span.
Definition Api.h:324
BasicConstPixelView< Yuv12 > Yuv12ConstPixelView
YUV-12 const pixel view.
Definition Api.h:312
BasicView< Argb32 > Argb32View
ARGB-32 view.
Definition Api.h:158
BasicConstLineView< Argb32 > Argb32ConstLineView
ARGB-32 const line view.
Definition Api.h:178
BasicConstImage< Rgb32 > Rgb32ConstImage
RGB-32 const image.
Definition Api.h:248
BasicConstView< Argb32 > Argb32ConstView
ARGB-32 const view.
Definition Api.h:162
BasicLineView< Argb32 > Argb32LineView
ARGB-32 line view.
Definition Api.h:174
BasicPixelView< Yuv12 > Yuv12PixelView
YUV-12 pixel view.
Definition Api.h:308
BasicLineView< Rgb16 > Rgb16LineView
RGB-16 line view.
Definition Api.h:222
Core module.
Definition Allocator.h:33
Image traits.
Definition ImageTraits.h:44