Nana C++ Library. Reference for users.
What we need to use nana
|
load a picture file More...
Classes | |
class | image_impl_interface |
Public Member Functions | |
image () noexcept | |
image (const image &) | |
image (image &&) | |
image (const ::std::string &file) | |
image (const ::std::wstring &file) | |
~image () | |
image & | operator= (const image &rhs) |
image & | operator= (image &&) |
bool | open (const ::std::string &file) |
bool | open (const ::std::wstring &file) |
bool | open (const void *data, std::size_t bytes) |
Opens an icon from a specified buffer. More... | |
bool | empty () const noexcept |
operator unspecified_bool_t () const | |
void | close () noexcept |
bool | alpha () const noexcept |
nana::size | size () const noexcept |
void | paste (graphics &dst, const point &p_dst) const |
void | paste (const nana::rectangle &r_src, graphics &dst, const point &p_dst) const |
Paste the area of picture specified by r_src into the destination graphics specified by dst at position p_dst. More... | |
void | stretch (const nana::rectangle &r_src, graphics &dst, const nana::rectangle &r_dst) const |
Paste the picture into the dst, stretching or compressing the picture to fit the given area. More... | |
Friends | |
class | image_accessor |
load a picture file
|
noexcept |
nana::paint::image::image | ( | const image & | rhs | ) |
nana::paint::image::image | ( | image && | r | ) |
|
explicit |
|
explicit |
nana::paint::image::~image | ( | ) |
|
noexcept |
|
noexcept |
|
noexcept |
bool nana::paint::image::open | ( | const ::std::string & | file | ) |
bool nana::paint::image::open | ( | const ::std::wstring & | file | ) |
bool nana::paint::image::open | ( | const void * | data, |
std::size_t | bytes | ||
) |
Opens an icon from a specified buffer.
nana::paint::image::operator unspecified_bool_t | ( | ) | const |
void nana::paint::image::paste | ( | const nana::rectangle & | r_src, |
graphics & | dst, | ||
const point & | p_dst | ||
) | const |
Paste the area of picture specified by r_src into the destination graphics specified by dst at position p_dst.
|
noexcept |
void nana::paint::image::stretch | ( | const nana::rectangle & | r_src, |
graphics & | dst, | ||
const nana::rectangle & | r_dst | ||
) | const |
Paste the picture into the dst, stretching or compressing the picture to fit the given area.
|
friend |