Nana C++ Library. Reference for users.
What we need to use nana
 All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator Friends Pages
nana::paint::image Class Reference

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 ()
 
imageoperator= (const image &rhs)
 
imageoperator= (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
 

Detailed Description

Constructor & Destructor Documentation

nana::paint::image::image ( )
noexcept
nana::paint::image::image ( const image rhs)
nana::paint::image::image ( image &&  r)
nana::paint::image::image ( const ::std::string file)
explicit
nana::paint::image::image ( const ::std::wstring file)
explicit
nana::paint::image::~image ( )

Member Function Documentation

bool nana::paint::image::alpha ( ) const
noexcept
void nana::paint::image::close ( )
noexcept
bool nana::paint::image::empty ( ) const
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
image & nana::paint::image::operator= ( const image rhs)
image & nana::paint::image::operator= ( image &&  r)
void nana::paint::image::paste ( graphics dst,
const point p_dst 
) 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.

nana::size nana::paint::image::size ( ) const
noexcept
Examples:
draw.cpp.
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.

Friends And Related Function Documentation

friend class image_accessor
friend