| LensFlareElement Constructor (Single, Single, Single, Color, Vector2F, PackedTexture) |
Namespace: DigitalRune.GraphicsAssembly: DigitalRune.Graphics (in DigitalRune.Graphics.dll) Version: 1.2.0.0 (1.2.1.14562)
Syntax public LensFlareElement(
float distance,
float scale,
float rotation,
Color color,
Vector2F origin,
PackedTexture texture
)
Public Sub New (
distance As Single,
scale As Single,
rotation As Single,
color As Color,
origin As Vector2F,
texture As PackedTexture
)
public:
LensFlareElement(
float distance,
float scale,
float rotation,
Color color,
Vector2F origin,
PackedTexture^ texture
)
new :
distance : float32 *
scale : float32 *
rotation : float32 *
color : Color *
origin : Vector2F *
texture : PackedTexture -> LensFlareElement
Parameters
- distance
- Type: SystemSingle
The distance of the element: 0 = light source, 1 = center of screen.
Distance can be negative or greater than 1. The default value is 0.
- scale
- Type: SystemSingle
The scale of the element relative to Size.
- rotation
- Type: SystemSingle
The angle (in radians) to rotate the element around its center. NaN
can be set to automatically rotate the element depending on the position of the light
source.
- color
- Type: Color
The color of the element. - origin
- Type: DigitalRune.Mathematics.AlgebraVector2F
The origin relative to the image, where (0, 0) is the upper-left corner of the image and
(1, 1) is the lower-right corner of the image.
- texture
- Type: DigitalRune.GraphicsPackedTexture
The texture containing the image.
See Also