fix picture widget transparent image issue

This commit is contained in:
Jinhao
2015-03-04 03:28:12 +08:00
parent 70dabd9687
commit ce98ffa7b1
4 changed files with 26 additions and 14 deletions

View File

@@ -250,6 +250,11 @@ namespace paint
image_ptr_.reset();
}
bool image::alpha() const
{
return (image_ptr_ ? image_ptr_->alpha_channel() : false);
}
nana::size image::size() const
{
return (image_ptr_ ? image_ptr_->size() : nana::size());