Nix (Dev)
3.5.10
dev - 3.5.10 - 1af9301
Loading...
Searching...
No Matches
Image.hpp
Go to the documentation of this file.
1
#ifndef IV_SRC_UI_GRAPHICS_IMAGE_HPP_
2
#define IV_SRC_UI_GRAPHICS_IMAGE_HPP_
3
4
#include "
core/types.hpp
"
5
6
#include <memory>
7
8
namespace
iv::ui::graphics
9
{
10
11
class
Image
final
12
{
13
public
:
14
Image
();
15
Image
(
iv::types::imageWidth
width,
iv::types::imageHeight
height);
16
Image
(
iv::types::imageWidth
width,
iv::types::imageHeight
height,
iv::types::widthStep
widthStepInPixels,
17
iv::types::nChannels
nChannels,
const
unsigned
char
*buffer);
18
Image
(
const
Image
&other);
// Copy constructor
19
Image
(
Image
&&other)
noexcept
;
// Move constructor
20
~Image
();
21
22
Image
&
operator=
(
const
Image
&other);
// Copy assignment operator
23
Image
&
operator=
(
Image
&&other)
noexcept
;
// Move assignment operator
24
25
const
unsigned
char
*
getDataRaw
(
iv::types::imageWidth
*width,
iv::types::imageHeight
*height,
26
iv::types::widthStep
*widthStep,
iv::types::nChannels
*nChannels)
const
;
27
void
getSize
(
iv::types::imageWidth
*sizeX,
iv::types::imageHeight
*sizeY)
const
;
28
29
private
:
30
std::unique_ptr<unsigned char[]>
m_imageData
;
31
32
iv::types::ImageSize
m_size
;
33
iv::types::widthStep
m_widthStep
;
34
iv::types::nChannels
m_nChannels
;
35
};
36
37
}
// namespace iv::ui::graphics
38
39
#endif
//IV_SRC_UI_GRAPHICS_IMAGE_HPP_
iv::ui::graphics::Image
Definition
Image.hpp:12
iv::ui::graphics::Image::~Image
~Image()
iv::ui::graphics::Image::Image
Image()
Definition
Image.cpp:8
iv::ui::graphics::Image::m_nChannels
iv::types::nChannels m_nChannels
Definition
Image.hpp:34
iv::ui::graphics::Image::m_widthStep
iv::types::widthStep m_widthStep
Definition
Image.hpp:33
iv::ui::graphics::Image::getSize
void getSize(iv::types::imageWidth *sizeX, iv::types::imageHeight *sizeY) const
Definition
Image.cpp:96
iv::ui::graphics::Image::m_size
iv::types::ImageSize m_size
Definition
Image.hpp:32
iv::ui::graphics::Image::m_imageData
std::unique_ptr< unsigned char[]> m_imageData
Definition
Image.hpp:30
iv::ui::graphics::Image::operator=
Image & operator=(const Image &other)
Definition
Image.cpp:41
iv::ui::graphics::Image::getDataRaw
const unsigned char * getDataRaw(iv::types::imageWidth *width, iv::types::imageHeight *height, iv::types::widthStep *widthStep, iv::types::nChannels *nChannels) const
Definition
Image.cpp:70
types.hpp
iv::types::imageHeight
uint64_t imageHeight
Definition
types.hpp:57
iv::types::imageWidth
uint64_t imageWidth
Definition
types.hpp:58
iv::types::nChannels
uint16_t nChannels
Definition
types.hpp:60
iv::types::widthStep
uint64_t widthStep
Definition
types.hpp:59
iv::ui::graphics
Definition
Image.cpp:6
iv::types::ImageSize
Definition
types.hpp:145
src
ui
graphics
Image.hpp
Generated by
1.12.0