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
IDeviceContextimage
IDeviceImagesourceRectangle
RectFloatextendModeX
ExtendModeextendModeY
ExtendModeinterpolationMode
InterpolationModeopacity
floattransform
Matrix3x2Float?