Api-Rgb32Image.h
1/* Copyright (C) 2015 Marc Boris Duerner
2 SPDX-License-Identifier: LGPL-2.1-or-later WITH mif-exception
3*/
4
5#ifndef PT_GFX_API_RGB32IMAGE_H
6#define PT_GFX_API_RGB32IMAGE_H
7
8#include <Pt/Gfx/Api.h>
9
10namespace Pt {
11
12namespace Gfx {
13
30class Rgb32Image : public BasicImage<Rgb32>
31{
32 public:
38 explicit Rgb32Image(const Rgb32& format = Rgb32::get());
39
46 Rgb32Image(Pt::ssize_t width, Pt::ssize_t height,
47 const Rgb32& format = Rgb32::get());
48
57 Rgb32Image(Pt::ssize_t width, Pt::ssize_t height, Pt::ssize_t padding,
58 const Rgb32& format = Rgb32::get());
59
68 Rgb32Image(Pt::uint8_t* data, Pt::ssize_t width, Pt::ssize_t height,
69 const Rgb32& format = Rgb32::get());
70
79 Rgb32Image(Pt::uint8_t* data, Pt::ssize_t width, Pt::ssize_t height,
80 Pt::ssize_t padding, const Rgb32& format = Rgb32::get());
81
86 Rgb32Image(const Rgb32Image& image);
87};
88
89} // namespace Gfx
90
91} // namespace Pt
92
93#endif
BasicImage(const Format &format=Rgb32::get())
Rgb32Image(Pt::uint8_t *data, Pt::ssize_t width, Pt::ssize_t height, Pt::ssize_t padding, const Rgb32 &format=Rgb32::get())
Constructs an image over external pixel data with row padding.
Rgb32Image(const Rgb32 &format=Rgb32::get())
Constructs an empty image.
Rgb32Image(Pt::ssize_t width, Pt::ssize_t height, Pt::ssize_t padding, const Rgb32 &format=Rgb32::get())
Constructs an image of the given size with row padding.
Rgb32Image(Pt::ssize_t width, Pt::ssize_t height, const Rgb32 &format=Rgb32::get())
Constructs an image of the given size.
Rgb32Image(Pt::uint8_t *data, Pt::ssize_t width, Pt::ssize_t height, const Rgb32 &format=Rgb32::get())
Constructs an image over external pixel data.
Rgb32Image(const Rgb32Image &image)
Copy constructor.
Premultiplied ARGB-32 image format.
Definition Rgb32.h:315
uint_type uint8_t
Unsigned 8-bit integer type.
Definition Api-Types.h:24
Graphics and imaging services.
Definition Api-Argb32Image.h:12
Core module.
Definition Allocator.h:33