Table of Contents

Method CreateImageBrush

Namespace
PaintDotNet.Direct2D1
Assembly
PaintDotNet.Windows.Core.dll

CreateImageBrush(IDeviceContext, IDeviceImage, RectFloat, ExtendMode, ExtendMode, InterpolationMode, float, in Matrix3x2Float?)

public static IImageBrush CreateImageBrush(this IDeviceContext deviceContext, IDeviceImage image, RectFloat sourceRectangle, ExtendMode extendModeX = ExtendMode.Clamp, ExtendMode extendModeY = ExtendMode.Clamp, InterpolationMode interpolationMode = InterpolationMode.Linear, float opacity = 1, in Matrix3x2Float? transform = null)

Parameters

deviceContext IDeviceContext
image IDeviceImage
sourceRectangle RectFloat
extendModeX ExtendMode
extendModeY ExtendMode
interpolationMode InterpolationMode
opacity float
transform Matrix3x2Float?

Returns

IImageBrush