17 #ifndef IGNITION_RENDERING_IMAGE_HH_ 18 #define IGNITION_RENDERING_IMAGE_HH_ 22 #include "ignition/rendering/Export.hh" 30 class IGNITION_RENDERING_VISIBLE
Image 36 public:
Image() =
default;
42 public:
Image(
unsigned int _width,
unsigned int _height,
50 public:
unsigned int Width()
const;
54 public:
unsigned int Height()
const;
62 public:
unsigned int Depth()
const;
66 public:
unsigned int MemorySize()
const;
70 public:
const void *Data()
const;
79 public:
template <
typename T>
80 const T *Data()
const;
85 public:
template <
typename T>
89 private:
unsigned int width = 0;
92 private:
unsigned int height = 0;
98 private: DataPtr data =
nullptr;
102 template <
typename T>
105 return static_cast<const T *
>(this->data.get());
109 template <
typename T>
112 return static_cast<T *
>(this->data.get());
Encapsulates a raw image buffer and relevant properties.
Definition: Image.hh:30
const void * Data() const
Get a const pointer to image data.
PixelFormat
Definition: PixelFormat.hh:29
< Unknown or errant type
Definition: PixelFormat.hh:32
Definition: ArrowVisual.hh:22