Click or drag to resize
DigitalRuneLensFlareElement Constructor (Single, Single, Single, Color, Vector2F, PackedTexture)
Initializes a new instance of the LensFlareElement class.

Namespace: DigitalRune.Graphics
Assembly: 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
)

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