Class DrawImageProcessor
Combines two images together by blending the pixels.
Implements
Inherited Members
Namespace: SixLabors.ImageSharp.Processing.Processors.Drawing
Assembly: SixLabors.ImageSharp.dll
Syntax
public class DrawImageProcessor : IImageProcessorConstructors
| Improve this Doc View SourceDrawImageProcessor(Image, Point, PixelColorBlendingMode, PixelAlphaCompositionMode, Single)
Initializes a new instance of the DrawImageProcessor class.
Declaration
public DrawImageProcessor(Image image, Point location, PixelColorBlendingMode colorBlendingMode, PixelAlphaCompositionMode alphaCompositionMode, float opacity)Parameters
| Type | Name | Description | 
|---|---|---|
| Image | image | The image to blend. | 
| Point | location | The location to draw the blended image. | 
| PixelColorBlendingMode | colorBlendingMode | The blending mode to use when drawing the image. | 
| PixelAlphaCompositionMode | alphaCompositionMode | The Alpha blending mode to use when drawing the image. | 
| Single | opacity | The opacity of the image to blend. | 
Properties
| Improve this Doc View SourceAlphaCompositionMode
Gets the Alpha blending mode to use when drawing the image.
Declaration
public PixelAlphaCompositionMode AlphaCompositionMode { get; }Property Value
| Type | Description | 
|---|---|
| PixelAlphaCompositionMode | 
ColorBlendingMode
Gets the blending mode to use when drawing the image.
Declaration
public PixelColorBlendingMode ColorBlendingMode { get; }Property Value
| Type | Description | 
|---|---|
| PixelColorBlendingMode | 
Image
Gets the image to blend.
Declaration
public Image Image { get; }Property Value
| Type | Description | 
|---|---|
| Image | 
Location
Gets the location to draw the blended image.
Declaration
public Point Location { get; }Property Value
| Type | Description | 
|---|---|
| Point | 
Opacity
Gets the opacity of the image to blend.
Declaration
public float Opacity { get; }Property Value
| Type | Description | 
|---|---|
| Single | 
Methods
| Improve this Doc View SourceCreatePixelSpecificProcessor<TPixelBg>(Configuration, Image<TPixelBg>, Rectangle)
Creates a pixel specific IImageProcessor<TPixel> that is capable of executing the processing algorithm on an Image<TPixel>.
Declaration
public IImageProcessor<TPixelBg> CreatePixelSpecificProcessor<TPixelBg>(Configuration configuration, Image<TPixelBg> source, Rectangle sourceRectangle)
    where TPixelBg : struct, IPixel<TPixelBg>Parameters
| Type | Name | Description | 
|---|---|---|
| Configuration | configuration | The configuration which allows altering default behaviour or extending the library. | 
| Image<TPixelBg> | source | |
| Rectangle | sourceRectangle | The Rectangle structure that specifies the portion of the image object to draw. | 
Returns
| Type | Description | 
|---|---|
| IImageProcessor<TPixelBg> | 
Type Parameters
| Name | Description | 
|---|---|
| TPixelBg |