fix no implementation of image_png::open interface

This commit is contained in:
Jinhao 2015-08-09 07:37:53 +08:00
parent ff7a1f9510
commit e7fc08fd0e

View File

@ -21,10 +21,6 @@ namespace nana
: public image::image_impl_interface
{
public:
image_png()
{
}
bool open(const nana::char_t* png_file) override
{
#ifdef NANA_UNICODE
@ -148,6 +144,12 @@ namespace nana
return is_opened;
}
bool open(const void* data, std::size_t bytes) override
{
throw std::logic_error("PNG is not supported for raw data buffer");
return false;
}
bool alpha_channel() const override
{
return pixbuf_.alpha_channel();