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
source
IImageProcessingContextThe current image processing context.
foreground
ImageThe image to draw on the currently processing image.
options
GraphicsOptionsThe 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
source
IImageProcessingContextThe current image processing context.
foreground
ImageThe image to draw on the currently processing image.
colorBlending
PixelColorBlendingModeThe color blending mode.
alphaComposition
PixelAlphaCompositionModeThe alpha composition mode.
opacity
floatThe 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
source
IImageProcessingContextThe current image processing context.
foreground
ImageThe image to draw on the currently processing image.
colorBlending
PixelColorBlendingModeThe color blending mode.
opacity
floatThe 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
source
IImageProcessingContextThe current image processing context.
foreground
ImageThe image to draw on the currently processing image.
backgroundLocation
PointThe location on the currently processing image at which to draw.
options
GraphicsOptionsThe 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
source
IImageProcessingContextThe current image processing context.
foreground
ImageThe image to draw on the currently processing image.
backgroundLocation
PointThe location on the currently processing image at which to draw.
colorBlending
PixelColorBlendingModeThe color blending to apply.
alphaComposition
PixelAlphaCompositionModeThe alpha composition mode.
opacity
floatThe 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
source
IImageProcessingContextThe current image processing context.
foreground
ImageThe image to draw on the currently processing image.
backgroundLocation
PointThe location on the currently processing image at which to draw.
colorBlending
PixelColorBlendingModeThe color blending to apply.
opacity
floatThe 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
source
IImageProcessingContextThe current image processing context.
foreground
ImageThe image to draw on the currently processing image.
backgroundLocation
PointThe location on the currently processing image at which to draw.
foregroundRectangle
RectangleThe rectangle structure that specifies the portion of the image to draw.
options
GraphicsOptionsThe 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
source
IImageProcessingContextThe current image processing context.
foreground
ImageThe image to draw on the currently processing image.
backgroundLocation
PointThe location on the currently processing image at which to draw.
foregroundRectangle
RectangleThe rectangle structure that specifies the portion of the image to draw.
colorBlending
PixelColorBlendingModeThe color blending to apply.
alphaComposition
PixelAlphaCompositionModeThe alpha composition mode.
opacity
floatThe 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
source
IImageProcessingContextThe current image processing context.
foreground
ImageThe image to draw on the currently processing image.
backgroundLocation
PointThe location on the currently processing image at which to draw.
foregroundRectangle
RectangleThe rectangle structure that specifies the portion of the image to draw.
colorBlending
PixelColorBlendingModeThe color blending to apply.
opacity
floatThe 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
source
IImageProcessingContextThe current image processing context.
foreground
ImageThe image to draw on the currently processing image.
backgroundLocation
PointThe location on the currently processing image at which to draw.
foregroundRectangle
RectangleThe rectangle structure that specifies the portion of the image to draw.
opacity
floatThe 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
source
IImageProcessingContextThe current image processing context.
foreground
ImageThe image to draw on the currently processing image.
backgroundLocation
PointThe location on the currently processing image at which to draw.
opacity
floatThe 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
source
IImageProcessingContextThe current image processing context.
foreground
ImageThe image to draw on the currently processing image.
foregroundRectangle
RectangleThe rectangle structure that specifies the portion of the image to draw.
options
GraphicsOptionsThe 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
source
IImageProcessingContextThe current image processing context.
foreground
ImageThe image to draw on the currently processing image.
foregroundRectangle
RectangleThe rectangle structure that specifies the portion of the image to draw.
colorBlending
PixelColorBlendingModeThe color blending mode.
alphaComposition
PixelAlphaCompositionModeThe alpha composition mode.
opacity
floatThe 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
source
IImageProcessingContextThe current image processing context.
foreground
ImageThe image to draw on the currently processing image.
foregroundRectangle
RectangleThe rectangle structure that specifies the portion of the image to draw.
colorBlending
PixelColorBlendingModeThe color blending mode.
opacity
floatThe 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
source
IImageProcessingContextThe current image processing context.
foreground
ImageThe image to draw on the currently processing image.
foregroundRectangle
RectangleThe rectangle structure that specifies the portion of the image to draw.
opacity
floatThe 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
source
IImageProcessingContextThe current image processing context.
foreground
ImageThe image to draw on the currently processing image.
opacity
floatThe opacity of the image to draw. Must be between 0 and 1.