#include <alphaimage.h>
| Public Member Functions | |
| AlphaImage (const std::string &file) | |
| Constructor. | |
| void | set_alpha (double alpha) | 
| Set the alpha value for the image. | |
| double | get_alpha () const | 
| Get the alpha value. | |
| Private Member Functions | |
| virtual bool | on_expose_event (GdkEventExpose *) | 
| Private Attributes | |
| Cairo::RefPtr < Cairo::ImageSurface > | m_Image | 
| double | m_Alpha | 
| The internal alpha value. | |
This widget displays an image with a customizable alpha value for transparency
| AlphaImage::AlphaImage | ( | const std::string & | file | ) | 
Constructor.
| file | Path to image file | 
| void AlphaImage::set_alpha | ( | double | alpha | ) | 
Set the alpha value for the image.
| alpha | The alpha value, should be between 0.0 to 1.0 | 
| double AlphaImage::get_alpha | ( | ) | const  [inline] | 
Get the alpha value.
 1.5.3
 1.5.3