|
|
|
@ -16,7 +16,10 @@ namespace SixLabors.ImageSharp |
|
|
|
/// Draws the given image together with the current one by blending their pixels.
|
|
|
|
/// </summary>
|
|
|
|
/// <param name="source">The image this method extends.</param>
|
|
|
|
/// <param name="image">The image to blend with the currently processing image.</param>
|
|
|
|
/// <param name="image">
|
|
|
|
/// The image to blend with the currently processing image.
|
|
|
|
/// If the image dimensions do not match the given <paramref name="size"/> then the image will be resized to match.
|
|
|
|
/// </param>
|
|
|
|
/// <typeparam name="TPixel">The pixel format.</typeparam>
|
|
|
|
/// <param name="size">The size to draw the blended image.</param>
|
|
|
|
/// <param name="location">The location to draw the blended image.</param>
|
|
|
|
@ -45,7 +48,7 @@ namespace SixLabors.ImageSharp |
|
|
|
/// <typeparam name="TPixel">The pixel format.</typeparam>
|
|
|
|
/// <param name="source">The image this method extends.</param>
|
|
|
|
/// <param name="image">The image to blend with the currently processing image.</param>
|
|
|
|
/// <param name="percent">The opacity of the image image to blend. Must be between 0 and 1.</param>
|
|
|
|
/// <param name="percent">The opacity of the image to blend. Must be between 0 and 1.</param>
|
|
|
|
/// <returns>The <see cref="Image{TPixel}"/>.</returns>
|
|
|
|
public static IImageProcessingContext<TPixel> Blend<TPixel>(this IImageProcessingContext<TPixel> source, Image<TPixel> image, float percent) |
|
|
|
where TPixel : struct, IPixel<TPixel> |
|
|
|
@ -62,7 +65,7 @@ namespace SixLabors.ImageSharp |
|
|
|
/// <param name="source">The image this method extends.</param>
|
|
|
|
/// <param name="image">The image to blend with the currently processing image.</param>
|
|
|
|
/// <param name="blender">The blending mode.</param>
|
|
|
|
/// <param name="percent">The opacity of the image image to blend. Must be between 0 and 1.</param>
|
|
|
|
/// <param name="percent">The opacity of the image to blend. Must be between 0 and 1.</param>
|
|
|
|
/// <returns>The <see cref="Image{TPixel}"/>.</returns>
|
|
|
|
public static IImageProcessingContext<TPixel> Blend<TPixel>(this IImageProcessingContext<TPixel> source, Image<TPixel> image, PixelBlenderMode blender, float percent) |
|
|
|
where TPixel : struct, IPixel<TPixel> |
|
|
|
@ -79,7 +82,7 @@ namespace SixLabors.ImageSharp |
|
|
|
/// <typeparam name="TPixel">The pixel format.</typeparam>
|
|
|
|
/// <param name="source">The image this method extends.</param>
|
|
|
|
/// <param name="image">The image to blend with the currently processing image.</param>
|
|
|
|
/// <param name="options">The options, including the blending type and belnding amount.</param>
|
|
|
|
/// <param name="options">The options, including the blending type and blending amount.</param>
|
|
|
|
/// <returns>The <see cref="Image{TPixel}"/>.</returns>
|
|
|
|
public static IImageProcessingContext<TPixel> Blend<TPixel>(this IImageProcessingContext<TPixel> source, Image<TPixel> image, GraphicsOptions options) |
|
|
|
where TPixel : struct, IPixel<TPixel> |
|
|
|
@ -91,9 +94,12 @@ namespace SixLabors.ImageSharp |
|
|
|
/// Draws the given image together with the current one by blending their pixels.
|
|
|
|
/// </summary>
|
|
|
|
/// <param name="source">The image this method extends.</param>
|
|
|
|
/// <param name="image">The image to blend with the currently processing image.</param>
|
|
|
|
/// <param name="image">
|
|
|
|
/// The image to blend with the currently processing image.
|
|
|
|
/// If the image dimensions do not match the given <paramref name="size"/> then the image will be resized to match.
|
|
|
|
/// </param>
|
|
|
|
/// <typeparam name="TPixel">The pixel format.</typeparam>
|
|
|
|
/// <param name="percent">The opacity of the image image to blend. Must be between 0 and 1.</param>
|
|
|
|
/// <param name="percent">The opacity of the image to blend. Must be between 0 and 1.</param>
|
|
|
|
/// <param name="size">The size to draw the blended image.</param>
|
|
|
|
/// <param name="location">The location to draw the blended image.</param>
|
|
|
|
/// <returns>The <see cref="Image{TPixel}"/>.</returns>
|
|
|
|
@ -109,10 +115,13 @@ namespace SixLabors.ImageSharp |
|
|
|
/// Draws the given image together with the current one by blending their pixels.
|
|
|
|
/// </summary>
|
|
|
|
/// <param name="source">The image this method extends.</param>
|
|
|
|
/// <param name="image">The image to blend with the currently processing image.</param>
|
|
|
|
/// <param name="image">
|
|
|
|
/// The image to blend with the currently processing image.
|
|
|
|
/// If the image dimensions do not match the given <paramref name="size"/> then the image will be resized to match.
|
|
|
|
/// </param>
|
|
|
|
/// <typeparam name="TPixel">The pixel format.</typeparam>
|
|
|
|
/// <param name="blender">The type of bending to apply.</param>
|
|
|
|
/// <param name="percent">The opacity of the image image to blend. Must be between 0 and 1.</param>
|
|
|
|
/// <param name="percent">The opacity of the image to blend. Must be between 0 and 1.</param>
|
|
|
|
/// <param name="size">The size to draw the blended image.</param>
|
|
|
|
/// <param name="location">The location to draw the blended image.</param>
|
|
|
|
/// <returns>The <see cref="Image{TPixel}"/>.</returns>
|
|
|
|
|