Method Update
- Namespace
- PaintDotNet.Direct2D1
- Assembly
- PaintDotNet.Windows.dll
Update(int, in ResourceTextureExtents?, ExtentPtr<byte>, ResourceTextureStrides)
Updates the specific resource texture inside the specific range or box using the supplied data.
void Update(int dimensions, in ResourceTextureExtents? extents, ExtentPtr<byte> data, ResourceTextureStrides dataStrides)
Parameters
dimensionsintThe number of dimensions in the resource texture. This must match the number used to load the texture.
extentsResourceTextureExtents?The extents of the data to be updated, or null to update the whole texture.
dataExtentPtr<byte>The data to be placed into the resource texture.
dataStridesResourceTextureStridesThe number of bytes between the start of rows (for 2D textures) and planes (for 3D textures).