Class Bloom
[DataContract("Bloom")]
public class Bloom : ImageEffect, IComponent, IReferencable, ICollectorHolder, IImageEffect, IGraphicsRenderer, IGraphicsRendererBase, IGraphicsRendererCore, IDisposable
- Inheritance
-
Bloom
- Implements
- Inherited Members
- Extension Methods
Constructors
Bloom()
Initializes a new instance of the Bloom class.
public Bloom()
Properties
Afterimage
Gets the afterimage effect/>
[DataMember(50)]
public Afterimage Afterimage { get; }
Property Value
Amount
Gets or sets the amount.
[DataMember(20)]
public float Amount { get; set; }
Property Value
- float
The amount.
Distortion
Vertical or horizontal distortion to apply. (1, 2) means the bloom will be stretched twice longer horizontally than vertically.
[DataMember(40)]
public Vector2 Distortion { get; set; }
Property Value
DownScale
public int DownScale { get; set; }
Property Value
MipIndex
public int MipIndex { get; set; }
Property Value
Radius
Radius of the bloom.
[DataMember(10)]
[DataMemberRange(1, 100, 1, 10, 1)]
public float Radius { get; set; }
Property Value
ShowOnlyBloom
public bool ShowOnlyBloom { get; set; }
Property Value
ShowOnlyMip
public bool ShowOnlyMip { get; set; }
Property Value
SigmaRatio
Gets or sets the sigma ratio.
[Display("Sigma ratio", null)]
[DataMember(30)]
public float SigmaRatio { get; set; }
Property Value
- float
The ratio
StableConvolution
Use the "stable bloom" rendering path.
[DataMember(60)]
[Display("Expanded filtering", null)]
public bool StableConvolution { get; set; }
Property Value
Methods
DrawCore(RenderDrawContext)
Main drawing method for this renderer that must be implemented.
protected override void DrawCore(RenderDrawContext context)
Parameters
context
RenderDrawContextThe context.
InitializeCore()
protected override void InitializeCore()