Class DrawImageExtensions
- Namespace
- SixLabors.ImageSharp.Processing
- Assembly
- SixLabors.ImageSharp.dll
Adds extensions that allow the drawing of images to the Image<TPixel> type.
public static class DrawImageExtensions
- Inheritance
-
DrawImageExtensions
- Inherited Members
Methods
DrawImage(IImageProcessingContext, Image, GraphicsOptions)
Draws the given image together with the currently processing image by blending their pixels.
public static IImageProcessingContext DrawImage(this IImageProcessingContext source, Image foreground, GraphicsOptions options)
Parameters
sourceIImageProcessingContextThe current image processing context.
foregroundImageThe image to draw on the currently processing image.
optionsGraphicsOptionsThe options, including the blending type and blending amount.
Returns
DrawImage(IImageProcessingContext, Image, PixelColorBlendingMode, PixelAlphaCompositionMode, float)
Draws the given image together with the currently processing image by blending their pixels.
public static IImageProcessingContext DrawImage(this IImageProcessingContext source, Image foreground, PixelColorBlendingMode colorBlending, PixelAlphaCompositionMode alphaComposition, float opacity)
Parameters
sourceIImageProcessingContextThe current image processing context.
foregroundImageThe image to draw on the currently processing image.
colorBlendingPixelColorBlendingModeThe color blending mode.
alphaCompositionPixelAlphaCompositionModeThe alpha composition mode.
opacityfloatThe opacity of the image to draw. Must be between 0 and 1.
Returns
DrawImage(IImageProcessingContext, Image, PixelColorBlendingMode, float)
Draws the given image together with the currently processing image by blending their pixels.
public static IImageProcessingContext DrawImage(this IImageProcessingContext source, Image foreground, PixelColorBlendingMode colorBlending, float opacity)
Parameters
sourceIImageProcessingContextThe current image processing context.
foregroundImageThe image to draw on the currently processing image.
colorBlendingPixelColorBlendingModeThe color blending mode.
opacityfloatThe opacity of the image to draw. Must be between 0 and 1.
Returns
DrawImage(IImageProcessingContext, Image, Point, GraphicsOptions)
Draws the given image together with the currently processing image by blending their pixels.
public static IImageProcessingContext DrawImage(this IImageProcessingContext source, Image foreground, Point backgroundLocation, GraphicsOptions options)
Parameters
sourceIImageProcessingContextThe current image processing context.
foregroundImageThe image to draw on the currently processing image.
backgroundLocationPointThe location on the currently processing image at which to draw.
optionsGraphicsOptionsThe options containing the blend mode and opacity.
Returns
DrawImage(IImageProcessingContext, Image, Point, PixelColorBlendingMode, PixelAlphaCompositionMode, float)
Draws the given image together with the currently processing image by blending their pixels.
public static IImageProcessingContext DrawImage(this IImageProcessingContext source, Image foreground, Point backgroundLocation, PixelColorBlendingMode colorBlending, PixelAlphaCompositionMode alphaComposition, float opacity)
Parameters
sourceIImageProcessingContextThe current image processing context.
foregroundImageThe image to draw on the currently processing image.
backgroundLocationPointThe location on the currently processing image at which to draw.
colorBlendingPixelColorBlendingModeThe color blending to apply.
alphaCompositionPixelAlphaCompositionModeThe alpha composition mode.
opacityfloatThe opacity of the image to draw. Must be between 0 and 1.
Returns
DrawImage(IImageProcessingContext, Image, Point, PixelColorBlendingMode, float)
Draws the given image together with the currently processing image by blending their pixels.
public static IImageProcessingContext DrawImage(this IImageProcessingContext source, Image foreground, Point backgroundLocation, PixelColorBlendingMode colorBlending, float opacity)
Parameters
sourceIImageProcessingContextThe current image processing context.
foregroundImageThe image to draw on the currently processing image.
backgroundLocationPointThe location on the currently processing image at which to draw.
colorBlendingPixelColorBlendingModeThe color blending to apply.
opacityfloatThe opacity of the image to draw. Must be between 0 and 1.
Returns
DrawImage(IImageProcessingContext, Image, Point, Rectangle, GraphicsOptions)
Draws the given image together with the currently processing image by blending their pixels.
public static IImageProcessingContext DrawImage(this IImageProcessingContext source, Image foreground, Point backgroundLocation, Rectangle foregroundRectangle, GraphicsOptions options)
Parameters
sourceIImageProcessingContextThe current image processing context.
foregroundImageThe image to draw on the currently processing image.
backgroundLocationPointThe location on the currently processing image at which to draw.
foregroundRectangleRectangleThe rectangle structure that specifies the portion of the image to draw.
optionsGraphicsOptionsThe options containing the blend mode and opacity.
Returns
DrawImage(IImageProcessingContext, Image, Point, Rectangle, PixelColorBlendingMode, PixelAlphaCompositionMode, float)
Draws the given image together with the currently processing image by blending their pixels.
public static IImageProcessingContext DrawImage(this IImageProcessingContext source, Image foreground, Point backgroundLocation, Rectangle foregroundRectangle, PixelColorBlendingMode colorBlending, PixelAlphaCompositionMode alphaComposition, float opacity)
Parameters
sourceIImageProcessingContextThe current image processing context.
foregroundImageThe image to draw on the currently processing image.
backgroundLocationPointThe location on the currently processing image at which to draw.
foregroundRectangleRectangleThe rectangle structure that specifies the portion of the image to draw.
colorBlendingPixelColorBlendingModeThe color blending to apply.
alphaCompositionPixelAlphaCompositionModeThe alpha composition mode.
opacityfloatThe opacity of the image to draw. Must be between 0 and 1.
Returns
DrawImage(IImageProcessingContext, Image, Point, Rectangle, PixelColorBlendingMode, float)
Draws the given image together with the currently processing image by blending their pixels.
public static IImageProcessingContext DrawImage(this IImageProcessingContext source, Image foreground, Point backgroundLocation, Rectangle foregroundRectangle, PixelColorBlendingMode colorBlending, float opacity)
Parameters
sourceIImageProcessingContextThe current image processing context.
foregroundImageThe image to draw on the currently processing image.
backgroundLocationPointThe location on the currently processing image at which to draw.
foregroundRectangleRectangleThe rectangle structure that specifies the portion of the image to draw.
colorBlendingPixelColorBlendingModeThe color blending to apply.
opacityfloatThe opacity of the image to draw. Must be between 0 and 1.
Returns
DrawImage(IImageProcessingContext, Image, Point, Rectangle, float)
Draws the given image together with the currently processing image by blending their pixels.
public static IImageProcessingContext DrawImage(this IImageProcessingContext source, Image foreground, Point backgroundLocation, Rectangle foregroundRectangle, float opacity)
Parameters
sourceIImageProcessingContextThe current image processing context.
foregroundImageThe image to draw on the currently processing image.
backgroundLocationPointThe location on the currently processing image at which to draw.
foregroundRectangleRectangleThe rectangle structure that specifies the portion of the image to draw.
opacityfloatThe opacity of the image to draw. Must be between 0 and 1.
Returns
DrawImage(IImageProcessingContext, Image, Point, float)
Draws the given image together with the currently processing image by blending their pixels.
public static IImageProcessingContext DrawImage(this IImageProcessingContext source, Image foreground, Point backgroundLocation, float opacity)
Parameters
sourceIImageProcessingContextThe current image processing context.
foregroundImageThe image to draw on the currently processing image.
backgroundLocationPointThe location on the currently processing image at which to draw.
opacityfloatThe opacity of the image to draw. Must be between 0 and 1.
Returns
DrawImage(IImageProcessingContext, Image, Rectangle, GraphicsOptions)
Draws the given image together with the currently processing image by blending their pixels.
public static IImageProcessingContext DrawImage(this IImageProcessingContext source, Image foreground, Rectangle foregroundRectangle, GraphicsOptions options)
Parameters
sourceIImageProcessingContextThe current image processing context.
foregroundImageThe image to draw on the currently processing image.
foregroundRectangleRectangleThe rectangle structure that specifies the portion of the image to draw.
optionsGraphicsOptionsThe options, including the blending type and blending amount.
Returns
DrawImage(IImageProcessingContext, Image, Rectangle, PixelColorBlendingMode, PixelAlphaCompositionMode, float)
Draws the given image together with the currently processing image by blending their pixels.
public static IImageProcessingContext DrawImage(this IImageProcessingContext source, Image foreground, Rectangle foregroundRectangle, PixelColorBlendingMode colorBlending, PixelAlphaCompositionMode alphaComposition, float opacity)
Parameters
sourceIImageProcessingContextThe current image processing context.
foregroundImageThe image to draw on the currently processing image.
foregroundRectangleRectangleThe rectangle structure that specifies the portion of the image to draw.
colorBlendingPixelColorBlendingModeThe color blending mode.
alphaCompositionPixelAlphaCompositionModeThe alpha composition mode.
opacityfloatThe opacity of the image to draw. Must be between 0 and 1.
Returns
DrawImage(IImageProcessingContext, Image, Rectangle, PixelColorBlendingMode, float)
Draws the given image together with the currently processing image by blending their pixels.
public static IImageProcessingContext DrawImage(this IImageProcessingContext source, Image foreground, Rectangle foregroundRectangle, PixelColorBlendingMode colorBlending, float opacity)
Parameters
sourceIImageProcessingContextThe current image processing context.
foregroundImageThe image to draw on the currently processing image.
foregroundRectangleRectangleThe rectangle structure that specifies the portion of the image to draw.
colorBlendingPixelColorBlendingModeThe color blending mode.
opacityfloatThe opacity of the image to draw. Must be between 0 and 1.
Returns
DrawImage(IImageProcessingContext, Image, Rectangle, float)
Draws the given image together with the currently processing image by blending their pixels.
public static IImageProcessingContext DrawImage(this IImageProcessingContext source, Image foreground, Rectangle foregroundRectangle, float opacity)
Parameters
sourceIImageProcessingContextThe current image processing context.
foregroundImageThe image to draw on the currently processing image.
foregroundRectangleRectangleThe rectangle structure that specifies the portion of the image to draw.
opacityfloatThe opacity of the image to draw. Must be between 0 and 1.
Returns
DrawImage(IImageProcessingContext, Image, float)
Draws the given image together with the currently processing image by blending their pixels.
public static IImageProcessingContext DrawImage(this IImageProcessingContext source, Image foreground, float opacity)
Parameters
sourceIImageProcessingContextThe current image processing context.
foregroundImageThe image to draw on the currently processing image.
opacityfloatThe opacity of the image to draw. Must be between 0 and 1.