IXRColorAnimation::SetBy (Windows Embedded CE 6.0)
1/6/2010
This method sets the total difference between the starting and ending values of the animation.
Syntax
virtual HRESULT STDMETHODCALLTYPE SetBy(
COLORREF By
) = 0;
Parameters
- By
[in] COLORREF value that indicates the total difference between the starting and ending values of the animation.
Return Value
Returns an HRESULT that indicates success or failure.
Remarks
Use this method when you want to animate a value by a specific amount, instead of by specifying a starting or ending value. You can also use this method together with the SetFrom method. For more information, see Remarks in IXRColorAnimation.
You can use the RGB macro or the RGBA macro to create a color value to supply to this method. For more information about identifying the correct BYTE values to use in the RGB or RGBA macro for red, green, and blue, see this Web site.
For guidance on creating RGB colors, color complements, and themes, see the EasyRGB.
.NET Framework Equivalent
System.Windows.Media.Animation.ColorAnimation.By
Requirements
Header | XamlRuntime.h |
sysgen | SYSGEN_XAML_RUNTIME |
Windows Embedded CE | Windows Embedded CE 6.0 R3 |