@ -21,7 +21,7 @@ namespace ImageSharp
/// <typeparam name="TPixel">The pixel format.</typeparam>
/// <param name="source">The image this method extends.</param>
/// <returns>The <see cref="Image{TPixel}"/>.</returns>
public static IImageProcessorApplicator < TPixel > Vignette < TPixel > ( this IImageProcessorApplicator < TPixel > source )
public static IImageProcessingContext < TPixel > Vignette < TPixel > ( this IImageProcessingContext < TPixel > source )
where TPixel : struct , IPixel < TPixel >
{
return Vignette ( source , GraphicsOptions . Default ) ;
@ -34,7 +34,7 @@ namespace ImageSharp
/// <param name="source">The image this method extends.</param>
/// <param name="color">The color to set as the vignette.</param>
/// <returns>The <see cref="Image{TPixel}"/>.</returns>
public static IImageProcessorApplicator < TPixel > Vignette < TPixel > ( this IImageProcessorApplicator < TPixel > source , TPixel color )
public static IImageProcessingContext < TPixel > Vignette < TPixel > ( this IImageProcessingContext < TPixel > source , TPixel color )
where TPixel : struct , IPixel < TPixel >
{
return Vignette ( source , color , GraphicsOptions . Default ) ;
@ -48,7 +48,7 @@ namespace ImageSharp
/// <param name="radiusX">The the x-radius.</param>
/// <param name="radiusY">The the y-radius.</param>
/// <returns>The <see cref="Image{TPixel}"/>.</returns>
public static IImageProcessorApplicator < TPixel > Vignette < TPixel > ( this IImageProcessorApplicator < TPixel > source , float radiusX , float radiusY )
public static IImageProcessingContext < TPixel > Vignette < TPixel > ( this IImageProcessingContext < TPixel > source , float radiusX , float radiusY )
where TPixel : struct , IPixel < TPixel >
{
return Vignette ( source , radiusX , radiusY , GraphicsOptions . Default ) ;
@ -63,7 +63,7 @@ namespace ImageSharp
/// The <see cref="Rectangle"/> structure that specifies the portion of the image object to alter.
/// </param>
/// <returns>The <see cref="Image{TPixel}"/>.</returns>
public static IImageProcessorApplicator < TPixel > Vignette < TPixel > ( this IImageProcessorApplicator < TPixel > source , Rectangle rectangle )
public static IImageProcessingContext < TPixel > Vignette < TPixel > ( this IImageProcessingContext < TPixel > source , Rectangle rectangle )
where TPixel : struct , IPixel < TPixel >
{
return Vignette ( source , rectangle , GraphicsOptions . Default ) ;
@ -81,7 +81,7 @@ namespace ImageSharp
/// The <see cref="Rectangle"/> structure that specifies the portion of the image object to alter.
/// </param>
/// <returns>The <see cref="Image{TPixel}"/>.</returns>
public static IImageProcessorApplicator < TPixel > Vignette < TPixel > ( this IImageProcessorApplicator < TPixel > source , TPixel color , float radiusX , float radiusY , Rectangle rectangle )
public static IImageProcessingContext < TPixel > Vignette < TPixel > ( this IImageProcessingContext < TPixel > source , TPixel color , float radiusX , float radiusY , Rectangle rectangle )
where TPixel : struct , IPixel < TPixel >
= > source . Vignette ( color , radiusX , radiusY , rectangle , GraphicsOptions . Default ) ;
@ -92,7 +92,7 @@ namespace ImageSharp
/// <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 IImageProcessorApplicator < TPixel > Vignette < TPixel > ( this IImageProcessorApplicator < TPixel > source , GraphicsOptions options )
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 ) ;
@ -104,7 +104,7 @@ namespace ImageSharp
/// <param name="color">The color to set as the vignette.</param>
/// <param name="options">The options effecting pixel blending.</param>
/// <returns>The <see cref="Image{TPixel}"/>.</returns>
public static IImageProcessorApplicator < TPixel > Vignette < TPixel > ( this IImageProcessorApplicator < TPixel > source , TPixel color , GraphicsOptions options )
public static IImageProcessingContext < TPixel > Vignette < TPixel > ( this IImageProcessingContext < TPixel > source , TPixel color , GraphicsOptions options )
where TPixel : struct , IPixel < TPixel >
= > source . VignetteInternal ( color , ValueSize . PercentageOfWidth ( . 5f ) , ValueSize . PercentageOfHeight ( . 5f ) , options ) ;
@ -117,7 +117,7 @@ namespace ImageSharp
/// <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 IImageProcessorApplicator < TPixel > Vignette < TPixel > ( this IImageProcessorApplicator < TPixel > source , float radiusX , float radiusY , GraphicsOptions options )
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 ) ;
@ -131,7 +131,7 @@ namespace ImageSharp
/// </param>
/// <param name="options">The options effecting pixel blending.</param>
/// <returns>The <see cref="Image{TPixel}"/>.</returns>
public static IImageProcessorApplicator < TPixel > Vignette < TPixel > ( this IImageProcessorApplicator < TPixel > source , Rectangle rectangle , GraphicsOptions options )
public static IImageProcessingContext < TPixel > Vignette < TPixel > ( this IImageProcessingContext < TPixel > source , Rectangle rectangle , GraphicsOptions options )
where TPixel : struct , IPixel < TPixel >
= > source . VignetteInternal ( NamedColors < TPixel > . Black , ValueSize . PercentageOfWidth ( . 5f ) , ValueSize . PercentageOfHeight ( . 5f ) , rectangle , options ) ;
@ -148,15 +148,15 @@ namespace ImageSharp
/// </param>
/// <param name="options">The options effecting pixel blending.</param>
/// <returns>The <see cref="Image{TPixel}"/>.</returns>
public static IImageProcessorApplicator < TPixel > Vignette < TPixel > ( this IImageProcessorApplicator < TPixel > source , TPixel color , float radiusX , float radiusY , Rectangle rectangle , GraphicsOptions options )
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 ) ;
private static IImageProcessorApplicator < TPixel > VignetteInternal < TPixel > ( this IImageProcessorApplicator < TPixel > source , TPixel color , ValueSize radiusX , ValueSize radiusY , Rectangle rectangle , GraphicsOptions options )
private static IImageProcessingContext < TPixel > VignetteInternal < TPixel > ( this IImageProcessingContext < TPixel > source , TPixel color , ValueSize radiusX , ValueSize radiusY , Rectangle rectangle , GraphicsOptions options )
where TPixel : struct , IPixel < TPixel >
= > source . ApplyProcessor ( new VignetteProcessor < TPixel > ( color , radiusX , radiusY , options ) , rectangle ) ;
private static IImageProcessorApplicator < TPixel > VignetteInternal < TPixel > ( this IImageProcessorApplicator < TPixel > source , TPixel color , ValueSize radiusX , ValueSize radiusY , GraphicsOptions options )
private static IImageProcessingContext < TPixel > VignetteInternal < TPixel > ( this IImageProcessingContext < TPixel > source , TPixel color , ValueSize radiusX , ValueSize radiusY , GraphicsOptions options )
where TPixel : struct , IPixel < TPixel >
= > source . ApplyProcessor ( new VignetteProcessor < TPixel > ( color , radiusX , radiusY , options ) ) ;
}