![]() Rogue Wave Views 5.5.1 |
Rogue Wave Views |
Rogue Wave Views Documentation Home |
Blend filter. More...
#include <ilviews/bitmaps/filters/blend.h>
Public Types | |
| enum | BlendMode { Normal, Multiply, Screen, Darken, Lighten } |
Public Member Functions | |
| IlvBlendFilter (BlendMode mode=Normal) | |
| Constructor. | |
| ~IlvBlendFilter () | |
| Destructor. | |
| IlvBitmapData * | apply (IlUInt count=0, const IlvBitmapData **datas=0) |
| Applies the blending to the given images. | |
| BlendMode | getMode () const |
| Returns the blending mode. | |
| void | setMode (BlendMode mode) |
| Sets the mode used for blending the images. | |
Blend filter.
Library: ilvbmpflt
This bitmap filter lets you blend two images together using predefined modes.
IlvRGBBitmapData, IlvBitmapFilter BlendMode This enumeration defines the possible values for the blend mode. For all blend modes, the resulting opacity is computed as follows: qr = 1 - (1 - qa) * (1 - qb)
For the blending formulas below, the following apply:
cr = Result color (RGB) - premultiplied
qa Opacity value at a given pixel for image A
qb Opacity value at a given pixel for image B
ca = Color (RGB) at a given pixel for image A - premultiplied
cb = Color (RGB) at a given pixel for image B - premultiplied
| IlvBlendFilter::IlvBlendFilter | ( | BlendMode | mode = Normal |
) |
Constructor.
Initializes a new instance of the class IlvBlendFilter.
| IlvBlendFilter::~IlvBlendFilter | ( | ) |
Destructor.
The destructor releases all the memory used by the instance.
| BlendMode IlvBlendFilter::getMode | ( | ) | const |
© Copyright 2012, Rogue Wave Software, Inc. All Rights Reserved.
Rogue Wave is a registered trademark of Rogue Wave Software, Inc. in the United States and other countries. All other trademarks are the property of their respective owners.