Table of Contents

Method CreateResourceTexture

Namespace
PaintDotNet.Direct2D1
Assembly
PaintDotNet.Windows.dll

CreateResourceTexture(in Guid?, in ResourceTextureProperties, ExtentPtr<byte>, ResourceTextureStrides?)

Creates or finds the given resource texture, depending on whether a resource ID is specified. It also optionally initializes the texture with the specified data.

IResourceTexture CreateResourceTexture(in Guid? resourceID, in ResourceTextureProperties resourceTextureProperties, ExtentPtr<byte> data, ResourceTextureStrides? dataStrides)

Parameters

resourceID Guid?

An optional unique ID that identifies the resource texture.

resourceTextureProperties ResourceTextureProperties

The properties used to create the resource texture.

data ExtentPtr<byte>

The optional data to be loaded into the resource texture. If this is empty/null/default, the resource texture will not have data loaded into it.

dataStrides ResourceTextureStrides?

The stride to advance through the resource texture, per dimension. This must be non-null if data is non-empty, even for 1D textures.

Returns

IResourceTexture