Download Microsoft Edge More info. Contents Exit focus mode. Color Structure Microsoft Silverlight will reach end of support after October Represents a four-component color using red, green, blue, and alpha data.
Color Single, Single, Single Initializes a new instance of the Color structure using floating point values. Properties Name Description A Gets or sets the alpha component value. B Gets or sets the blue component value. G Gets or sets the green component value PackedValue Gets the current color as a packed value. R Gets or sets the red component value. Methods Name Description Equals Object Determines whether the specified color object equals this object.
Overrides ValueType. Equals Object. The value is a bit unsigned integer, with R in the least significant octet. Gets or sets packed value of this Color. Deconstruction method for Color with Alpha. Compares whether current instance is equal to specified Color.
Translate a non-premultipled alpha Color to a Color that contains premultiplied alpha. A Color which contains premultiplied alpha data. Performs linear interpolation of Color. Lerp Color, Color, Single should be used instead of this function. String representation of this Color. The default value is Greater. CurrentTechnique Gets or sets the active technique. Inherited from Effect. DiffuseColor Gets or sets the diffuse color for a material, the range of color values is from 0 to 1.
FogColor Gets or sets the fog color, the range of color values is from 0 to 1. FogEnabled Gets or sets the fog enable flag. FogEnd Gets or sets the maximum z value for fog. FogStart Gets or sets the minimum z value for fog. IsDisposed Gets a value that indicates whether the object is disposed. Projection Gets or sets the projection matrix. ReferenceAlpha Gets or sets the reference alpha value, the default value is 0. Techniques Gets a collection of techniques that are defined for this effect.
The default is 0xffffffff. Methods Name Description Dispose Immediately releases the unmanaged resources used by this object. Dispose Boolean Immediately releases the unmanaged resources used by this object.
Finalize Allows this object to attempt to free resources and perform other cleanup operations before garbage collection reclaims the object. Fields Name Description Additive A built-in state object with settings for additive blend, which is adding the destination data to the source data without using alpha.
AlphaBlend A built-in state object with settings for alpha blend, that is blending the source and destination data using alpha. NonPremultiplied A built-in state object with settings for blending with non-premultipled alpha, that is blending source and destination data using alpha while assuming the color data contains no alpha information.
Opaque A built-in state object with settings for opaque blend, that is overwriting the source with the destination data. Version Information Silverlight Supported in: 5. Platforms For a list of the operating systems and browsers that are supported by Silverlight, see Supported Operating Systems and Browsers.
See Also Reference Microsoft. In this article. Creates an instance of the BlendState class with default values, using additive color and alpha blending. Gets or sets the arithmetic operation when blending alpha values.
0コメント