Table of Contents

Method CreateBitmapBrush

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

CreateBitmapBrush(IDeviceContext, IDeviceBitmap, ExtendMode, ExtendMode, InterpolationMode, float, in Matrix3x2Float?)

public static IBitmapBrush CreateBitmapBrush(this IDeviceContext deviceContext, IDeviceBitmap bitmap, ExtendMode extendModeX = ExtendMode.Clamp, ExtendMode extendModeY = ExtendMode.Clamp, InterpolationMode interpolationMode = InterpolationMode.Linear, float opacity = 1, in Matrix3x2Float? transform = null)

Parameters

deviceContext IDeviceContext
bitmap IDeviceBitmap
extendModeX ExtendMode
extendModeY ExtendMode
interpolationMode InterpolationMode
opacity float
transform Matrix3x2Float?

Returns

IBitmapBrush