[]
Represents a list of image effects.
public class ImageEffectList : FormattingBagList<ImageEffect>, IReadOnlyList<ImageEffect>, IReadOnlyCollection<ImageEffect>, IEnumerable<ImageEffect>, IEnumerable
Adds a new AlphaBiLevel effect into the list.
public AlphaBiLevel AddAlphaBiLevel(float threshold)
threshold
floatThe threshold value for the alpha bi-level effect.
The inserted AlphaBiLevel effect.
Adds a new AlphaCeiling effect into the list.
public AlphaCeiling AddAlphaCeiling()
The inserted AlphaCeiling effect.
Adds a new AlphaFloor effect into the list.
public AlphaFloor AddAlphaFloor()
The inserted AlphaFloor effect.
Adds a new AlphaInverse effect into the list.
public AlphaInverse AddAlphaInverse(UserColor color)
color
UserColorThe user color to replace transparency.
The inserted AlphaInverse effect.
Adds a new AlphaModulation effect into the list.
public AlphaModulation AddAlphaModulation(float amount)
amount
floatThe amount to scale the alpha.
The inserted AlphaModulation effect.
Adds a new AlphaReplace effect into the list.
public AlphaReplace AddAlphaReplace(float alpha)
alpha
floatThe alpha (opacity) value.
The inserted AlphaReplace effect.
Adds a new BiLevel effect into the list.
public BiLevel AddBiLevel(float threshold)
threshold
floatThe luminance threshold for the Bi-Level effect.
Adds a new Blur effect into the list.
public Blur AddBlur(float radius)
radius
floatThe radius of the blur.
Adds a new ColorChange effect into the list.
public ColorChange AddColorChange(UserColor colorFrom, UserColor colorTo)
colorFrom
UserColorThe user color getting removed.
colorTo
UserColorThe user color which replaces the colorFrom
.
The inserted ColorChange effect.
Adds a new ColorReplacement effect into the list.
public ColorReplacement AddColorReplacement(UserColor color)
color
UserColorThe replace user color.
The inserted ColorReplacement effect.
Adds a new Duotone effect into the list.
public Duotone AddDuotone(UserColor color1, UserColor color2)
color1
UserColorThe first user color to combine with color2
through a linear interpolation to determine the new color for pixels.
color2
UserColorThe second user color to combine with color1
through a linear interpolation to determine the new color for pixels.
Adds a new FillOverlay effect into the list.
public FillOverlay AddFillOverlay()
The inserted FillOverlay effect.
Adds a new Grayscale effect into the list.
public Grayscale AddGrayscale()
Adds a new HslEffect effect into the list.
public HslEffect AddHsl(float hue, float luminance, float saturation)
hue
floatThe number of degrees by which the hue is adjusted.
luminance
floatThe value by which the luminance is adjusted.
saturation
floatThe value by which the saturation is adjusted.
Adds a new Luminance effect into the list.
public Luminance AddLuminance(float brightness, float contrast)
brightness
floatThe value to change the brightness.
contrast
floatThe value to change the contrast.
Adds a new Tint effect into the list.
public Tint AddTint(float amount, float hue)
amount
floatHow much the color value is shifted.
hue
floatThe hue towards which to tint.
Inserts a new AlphaBiLevel effect into the list.
public AlphaBiLevel InsertAlphaBiLevel(int index, float threshold)
index
intThe effect index in the list.
threshold
floatThe threshold value for the alpha bi-level effect.
The inserted AlphaBiLevel effect.
Inserts a new AlphaCeiling effect into the list.
public AlphaCeiling InsertAlphaCeiling(int index)
index
intThe effect index in the list.
The inserted AlphaCeiling effect.
Inserts a new AlphaFloor effect into the list.
public AlphaFloor InsertAlphaFloor(int index)
index
intThe effect index in the list.
The inserted AlphaFloor effect.
Inserts a new AlphaInverse effect into the list.
public AlphaInverse InsertAlphaInverse(int index, UserColor color)
index
intThe effect index in the list.
color
UserColorThe user color to replace transparency.
The inserted AlphaInverse effect.
Inserts a new AlphaModulation effect into the list.
public AlphaModulation InsertAlphaModulation(int index, float amount)
index
intThe effect index in the list.
amount
floatThe amount to scale the alpha.
The inserted AlphaModulation effect.
Inserts a new AlphaReplace effect into the list.
public AlphaReplace InsertAlphaReplace(int index, float alpha)
index
intThe effect index in the list.
alpha
floatThe alpha (opacity) value.
The inserted AlphaReplace effect.
Inserts a new BiLevel effect into the list.
public BiLevel InsertBiLevel(int index, float threshold)
index
intThe effect index in the list.
threshold
floatThe luminance threshold for the Bi-Level effect.
Inserts a new Blur effect into the list.
public Blur InsertBlur(int index, float radius)
index
intThe effect index in the list.
radius
floatThe radius of the blur.
Inserts a new ColorChange effect into the list.
public ColorChange InsertColorChange(int index, UserColor colorFrom, UserColor colorTo)
index
intThe effect index in the list.
colorFrom
UserColorThe user color getting removed.
colorTo
UserColorThe user color which replaces the colorFrom
.
The inserted ColorChange effect.
Inserts a new ColorReplacement effect into the list.
public ColorReplacement InsertColorReplacement(int index, UserColor color)
index
intThe effect index in the list.
color
UserColorThe replace user color.
The inserted ColorReplacement effect.
Inserts a new Duotone effect into the list.
public Duotone InsertDuotone(int index, UserColor color1, UserColor color2)
index
intThe effect index in the list.
color1
UserColorThe first user color to combine with color2
through a linear interpolation to determine the new color for pixels.
color2
UserColorThe second user color to combine with color1
through a linear interpolation to determine the new color for pixels.
Inserts a new FillOverlay effect into the list.
public FillOverlay InsertFillOverlay(int index)
index
intThe effect index in the list.
The inserted FillOverlay effect.
Inserts a new Grayscale effect into the list.
public Grayscale InsertGrayscale(int index)
index
intThe effect index in the list.
Inserts a new HslEffect effect into the list.
public HslEffect InsertHsl(int index, float hue, float luminance, float saturation)
index
intThe effect index in the list.
hue
floatThe number of degrees by which the hue is adjusted.
luminance
floatThe value by which the luminance is adjusted.
saturation
floatThe value by which the saturation is adjusted.
Inserts a new Luminance effect into the list.
public Luminance InsertLuminance(int index, float brightness, float contrast)
index
intThe effect index in the list.
brightness
floatThe value to change the brightness.
contrast
floatThe value to change the contrast.
Inserts a new Tint effect into the list.
public Tint InsertTint(int index, float amount, float hue)
index
intThe effect index in the list.
amount
floatHow much the color value is shifted.
hue
floatThe hue towards which to tint.