Class FilmGrain
[DataContract("FilmGrain")]
public sealed class FilmGrain : ColorTransform
- Inheritance
-
FilmGrain
- Inherited Members
Constructors
FilmGrain()
Initializes a new instance of the FilmGrain class.
public FilmGrain()
FilmGrain(string)
Initializes a new instance of the FilmGrain class.
public FilmGrain(string effect)
Parameters
effect
string
Properties
Amount
Amount of grain.
[DataMember(10)]
[DataMemberRange(0, 1, 0.009999999776482582, 0.10000000149011612, 3)]
public float Amount { get; set; }
Property Value
Animate
Animates the film grain.
[DataMember(30)]
public bool Animate { get; set; }
Property Value
GrainSize
Grain size.
[DataMember(20)]
[DataMemberRange(0, 10, 0.10000000149011612, 1, 3)]
public float GrainSize { get; set; }
Property Value
LuminanceFactor
How the luminance influences the amount of grain.
[DataMember(40)]
[DataMemberRange(0, 1, 0.009999999776482582, 0.10000000149011612, 3)]
public float LuminanceFactor { get; set; }
Property Value
Methods
UpdateParameters(ColorTransformContext)
Updates the parameters for this transformation.
public override void UpdateParameters(ColorTransformContext context)
Parameters
context
ColorTransformContextThe context.
Remarks
This method is called just before rendering the ColorTransformGroup that is holding this ColorTransformBase