namespace win32 { namespace gui { class alphablend_painter : public painter_base, public painter_holder { public: typedef unsigned param0; // c'tor alphablend_painter(unsigned transparency); // virtual functions of painter_base alphablend_painter* clone() const; void draw(HDC hDC, int cx, int cy); // own functions void transparency(unsigned transparency); unsigned transparency() const; }; } } // namespace win32::gui
set_painter() transparency() sets or returns the transparency degree // create the alphablend_painter const unsigned TRANSPARENCY = 100; alphablend_painter p_alpha(TRANSPARENCY); p_alpha.set_painter<ipicture_painter> ("c:\\img1.jpg"); // add the painter add_painter (p_alpha);
|
by Steven Weiss. You can contact me at steven11@gmx.de. |