image_32 : add image_32(image_data_rgba8 &&) ctor
This commit is contained in:
parent
056feb4daa
commit
235326c8db
2 changed files with 6 additions and 0 deletions
|
@ -52,6 +52,7 @@ private:
|
|||
public:
|
||||
image_32(int width,int height);
|
||||
image_32(image_32 const& rhs);
|
||||
image_32(image_data_rgba8 && data);
|
||||
~image_32();
|
||||
|
||||
void painted(bool painted)
|
||||
|
|
|
@ -49,6 +49,11 @@ image_32::image_32(image_32 const& rhs)
|
|||
painted_(rhs.painted_),
|
||||
premultiplied_(rhs.premultiplied_) {}
|
||||
|
||||
image_32::image_32(image_data_rgba8 && data)
|
||||
: data_(std::move(data)),
|
||||
painted_(false),
|
||||
premultiplied_(false) {}
|
||||
|
||||
image_32::~image_32() {}
|
||||
|
||||
void image_32::set_grayscale_to_alpha()
|
||||
|
|
Loading…
Add table
Reference in a new issue