fix no implementation of image_png::open interface
This commit is contained in:
parent
ff7a1f9510
commit
e7fc08fd0e
@ -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();
|
||||
|
Loading…
x
Reference in New Issue
Block a user