16 template <
typename Type>
33 cloned.values = values.
clone();
44 void fill(
const Type& value) {
49 return values[map(p)];
53 return values[map(p)];
57 return values[map(
Pixel(x, y))];
61 return values[map(
Pixel(x, y))];
77 return values.
empty();
82 return p.
y * res.
x + p.
x;
Generic dynamically allocated resizable storage.
Bitmap< Rgba > loadBitmapFromFile(const Path &path)
Bitmap< Rgba > toBitmap(wxBitmap &wx)
void saveToFile(const wxBitmap &wx, const Path &path)
void toWxBitmap(const Bitmap< Rgba > &bitmap, wxBitmap &wx)
uint32_t Size
Integral type used to index arrays (by default).
#define INLINE
Macros for conditional compilation based on selected compiler.
#define NAMESPACE_SPH_END
void resize(const TCounter newSize)
Resizes the array to new size.
void fill(const T &t)
Sets all elements of the array to given value.
INLINE bool empty() const noexcept
Array clone() const
Performs a deep copy of all elements of the array.
void resize(const Pixel newResolution, const Type &value)
Type & operator()(const int x, const int y)
const Type & operator()(const int x, const int y) const
Bitmap(const Pixel resolution)
Type & operator[](const Pixel p)
const Type * data() const
void fill(const Type &value)
const Type & operator[](const Pixel p) const
Object representing a path on a filesystem.
Simple 2D vector with integer coordinates. Provides conversion from and to wxPoint.
Object with deleted copy constructor and copy operator.