image_32 : add image_32(image_data_rgba8 &&) ctor

This commit is contained in:
artemp 2015-01-13 11:44:24 +01:00
parent 056feb4daa
commit 235326c8db
2 changed files with 6 additions and 0 deletions

View file

@ -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)

View file

@ -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()