Table of Contents

Method CreateResourceTexture2D

Namespace
PaintDotNet.Direct2D1
Assembly
PaintDotNet.Windows.dll

CreateResourceTexture2D(IDeviceEffectContext, in Guid?, int, int, BufferPrecision, ChannelDepth, TextureFilter, ExtendMode, ExtendMode)

public static IResourceTexture CreateResourceTexture2D(this IDeviceEffectContext effectContext, in Guid? resourceID, int extentX, int extentY, BufferPrecision bufferPrecision, ChannelDepth channelDepth, TextureFilter filter, ExtendMode extendModeX, ExtendMode extendModeY)

Parameters

effectContext IDeviceEffectContext
resourceID Guid?
extentX int
extentY int
bufferPrecision BufferPrecision
channelDepth ChannelDepth
filter TextureFilter
extendModeX ExtendMode
extendModeY ExtendMode

Returns

IResourceTexture

CreateResourceTexture2D<T>(IDeviceEffectContext, in Guid?, int, int, BufferPrecision, ChannelDepth, TextureFilter, ExtendMode, ExtendMode, ExtentPtr<T>, uint)

public static IResourceTexture CreateResourceTexture2D<T>(this IDeviceEffectContext effectContext, in Guid? resourceID, int extentX, int extentY, BufferPrecision bufferPrecision, ChannelDepth channelDepth, TextureFilter filter, ExtendMode extendModeX, ExtendMode extendModeY, ExtentPtr<T> data, uint rowStride) where T : unmanaged

Parameters

effectContext IDeviceEffectContext
resourceID Guid?
extentX int
extentY int
bufferPrecision BufferPrecision
channelDepth ChannelDepth
filter TextureFilter
extendModeX ExtendMode
extendModeY ExtendMode
data ExtentPtr<T>
rowStride uint

Returns

IResourceTexture

Type Parameters

T