Пример #1
0
 /// <summary>
 /// Applies a radial vignette effect to an image.
 /// </summary>
 /// <param name="source">The image this method extends.</param>
 /// <param name="options">The options effecting pixel blending.</param>
 /// <param name="color">The color to set as the vignette.</param>
 /// <param name="radiusX">The the x-radius.</param>
 /// <param name="radiusY">The the y-radius.</param>
 /// <param name="rectangle">
 /// The <see cref="Rectangle"/> structure that specifies the portion of the image object to alter.
 /// </param>
 /// <returns>The <see cref="IImageProcessingContext"/> to allow chaining of operations.</returns>
 public static IImageProcessingContext Vignette(
     this IImageProcessingContext source,
     GraphicsOptions options,
     Color color,
     float radiusX,
     float radiusY,
     Rectangle rectangle) =>
 source.VignetteInternal(options, color, radiusX, radiusY, rectangle);
Пример #2
0
 /// <summary>
 /// Applies a radial vignette effect to an image.
 /// </summary>
 /// <param name="source">The image this method extends.</param>
 /// <param name="options">The options effecting pixel blending.</param>
 /// <param name="color">The color to set as the vignette.</param>
 /// <returns>The <see cref="IImageProcessingContext"/> to allow chaining of operations.</returns>
 public static IImageProcessingContext Vignette(
     this IImageProcessingContext source,
     GraphicsOptions options,
     Color color) =>
 source.VignetteInternal(
     options,
     color,
     ValueSize.PercentageOfWidth(.5f),
     ValueSize.PercentageOfHeight(.5f));
Пример #3
0
 /// <summary>
 /// Applies a radial vignette effect to an image.
 /// </summary>
 /// <param name="source">The image this method extends.</param>
 /// <param name="options">The options effecting pixel blending.</param>
 /// <param name="rectangle">
 /// The <see cref="Rectangle"/> structure that specifies the portion of the image object to alter.
 /// </param>
 /// <returns>The <see cref="IImageProcessingContext"/> to allow chaining of operations.</returns>
 public static IImageProcessingContext Vignette(
     this IImageProcessingContext source,
     GraphicsOptions options,
     Rectangle rectangle) =>
 source.VignetteInternal(
     options,
     Color.Black,
     ValueSize.PercentageOfWidth(.5f),
     ValueSize.PercentageOfHeight(.5f),
     rectangle);
Пример #4
0
 /// <summary>
 /// Applies a radial vignette effect to an image.
 /// </summary>
 /// <param name="source">The image this method extends.</param>
 /// <param name="options">The options effecting pixel blending.</param>
 /// <param name="radiusX">The the x-radius.</param>
 /// <param name="radiusY">The the y-radius.</param>
 /// <returns>The <see cref="IImageProcessingContext"/> to allow chaining of operations.</returns>
 public static IImageProcessingContext Vignette(
     this IImageProcessingContext source,
     GraphicsOptions options,
     float radiusX,
     float radiusY) =>
 source.VignetteInternal(options, Color.Black, radiusX, radiusY);
Пример #5
0
 /// <summary>
 /// Applies a radial vignette effect to an image.
 /// </summary>
 /// <typeparam name="TPixel">The pixel format.</typeparam>
 /// <param name="source">The image this method extends.</param>
 /// <param name="options">The options effecting pixel blending.</param>
 /// <returns>The <see cref="Image{TPixel}"/>.</returns>
 public static IImageProcessingContext <TPixel> Vignette <TPixel>(this IImageProcessingContext <TPixel> source, GraphicsOptions options)
     where TPixel : struct, IPixel <TPixel>
 => source.VignetteInternal(NamedColors <TPixel> .Black, ValueSize.PercentageOfWidth(.5f), ValueSize.PercentageOfHeight(.5f), options);
Пример #6
0
 /// <summary>
 /// Applies a radial vignette effect to an image.
 /// </summary>
 /// <typeparam name="TPixel">The pixel format.</typeparam>
 /// <param name="source">The image this method extends.</param>
 /// <param name="color">The color to set as the vignette.</param>
 /// <param name="radiusX">The the x-radius.</param>
 /// <param name="radiusY">The the y-radius.</param>
 /// <param name="rectangle">
 /// The <see cref="Rectangle"/> structure that specifies the portion of the image object to alter.
 /// </param>
 /// <param name="options">The options effecting pixel blending.</param>
 /// <returns>The <see cref="Image{TPixel}"/>.</returns>
 public static IImageProcessingContext <TPixel> Vignette <TPixel>(this IImageProcessingContext <TPixel> source, TPixel color, float radiusX, float radiusY, Rectangle rectangle, GraphicsOptions options)
     where TPixel : struct, IPixel <TPixel>
 => source.VignetteInternal(color, radiusX, radiusY, rectangle, options);
Пример #7
0
 /// <summary>
 /// Applies a radial vignette effect to an image.
 /// </summary>
 /// <typeparam name="TPixel">The pixel format.</typeparam>
 /// <param name="source">The image this method extends.</param>
 /// <param name="radiusX">The the x-radius.</param>
 /// <param name="radiusY">The the y-radius.</param>
 /// <param name="options">The options effecting pixel blending.</param>
 /// <returns>The <see cref="Image{TPixel}"/>.</returns>
 public static IImageProcessingContext <TPixel> Vignette <TPixel>(this IImageProcessingContext <TPixel> source, float radiusX, float radiusY, GraphicsOptions options)
     where TPixel : struct, IPixel <TPixel>
 => source.VignetteInternal(NamedColors <TPixel> .Black, radiusX, radiusY, options);
Пример #8
0
 /// <summary>
 /// Applies a radial vignette effect to an image.
 /// </summary>
 /// <typeparam name="TPixel">The pixel format.</typeparam>
 /// <param name="source">The image this method extends.</param>
 /// <param name="options">The options effecting pixel blending.</param>
 /// <param name="color">The color to set as the vignette.</param>
 /// <returns>The <see cref="Image{TPixel}"/>.</returns>
 public static IImageProcessingContext <TPixel> Vignette <TPixel>(this IImageProcessingContext <TPixel> source, GraphicsOptions options, TPixel color)
     where TPixel : struct, IPixel <TPixel>
 => source.VignetteInternal(options, color, ValueSize.PercentageOfWidth(.5f), ValueSize.PercentageOfHeight(.5f));