Data Structures | Public Member Functions | Static Public Member Functions
eo_cxx::efl::image Struct Reference

Data Structures

struct  address_const_of
 
struct  address_of
 

Public Member Functions

bool animated_get () const
 Check if an image can be animated (have multiple frames) More...
 
void load_size_get (int *w_, int *h_) const
 
void load_size_set (int w_, int h_) const
 Set the loading size of an image. More...
 
bool smooth_scale_get () const
 Retrieves whether the given image is using high-quality image scaling algorithm. More...
 
void smooth_scale_set (bool smooth_scale_) const
 Sets whether to use high-quality image scaling algorithm on the given image. More...
 
double ratio_get () const
 The native ration of the image object. More...
 
 operator::efl::image () const
 
 operator::efl::image & ()
 
 operator::efl::image const & () const
 

Static Public Member Functions

static Eo_Class const * _eo_class ()
 

Member Function Documentation

bool eo_cxx::efl::image::animated_get ( ) const
inline

Check if an image can be animated (have multiple frames)

Returns
whether the image support animation
Parameters
is_animatedIf it's animated or not.
void eo_cxx::efl::image::load_size_get ( int *  w_,
int *  h_ 
) const
inline
Parameters
wThe new width of the image's load size.
hThe new height of the image's load size.
void eo_cxx::efl::image::load_size_set ( int  w_,
int  h_ 
) const
inline

Set the loading size of an image.

The image will be loaded into memory as if it was the set size instead of the original size. This can save a lot of memory, and is important for scalable types like svg.

Parameters
wThe new width of the image's load size.
hThe new height of the image's load size.
bool eo_cxx::efl::image::smooth_scale_get ( ) const
inline

Retrieves whether the given image is using high-quality image scaling algorithm.

Returns
Whether smooth scale is being used.
Parameters
smooth_scaleWhether to use smooth scale or not.
void eo_cxx::efl::image::smooth_scale_set ( bool  smooth_scale_) const
inline

Sets whether to use high-quality image scaling algorithm on the given image.

When enabled, a higher quality image scaling algorithm is used when scaling images to sizes other than the source image's original one. This gives better results but is more computationally expensive.

Parameters
smooth_scaleWhether to use smooth scale or not.
double eo_cxx::efl::image::ratio_get ( ) const
inline

The native ration of the image object.

Parameters
ratioThe image's ratio