Table of Contents

Class DdsEncoder

Namespace
SharpDX.WIC
Assembly
SharpDX.Direct2D1.dll
[Guid("5cacdb4c-407e-41b3-b936-d0f010cd6732")]
public class DdsEncoder : ComObject
Inheritance
DdsEncoder

Constructors

DdsEncoder(nint)

public DdsEncoder(nint nativePtr)

Parameters

nativePtr nint

Properties

Parameters

Gets or sets DDS-specific data.

public DdsParameters Parameters { get; set; }

Property Value

DdsParameters

Remarks

An application can call GetParameters to obtain the default DDS parameters, modify some or all of them, and then call SetParameters.

Methods

CreateNewFrame(out BitmapFrameEncode, out int, out int, out int)

Creates a new frame to encode.

public void CreateNewFrame(out BitmapFrameEncode frameEncodeOut, out int arrayIndexRef, out int mipLevelRef, out int sliceIndexRef)

Parameters

frameEncodeOut BitmapFrameEncode

A reference to the newly created frame object.

arrayIndexRef int

Points to the location where the array index is returned.

mipLevelRef int

Points to the location where the mip level index is returned.

sliceIndexRef int

Points to the location where the slice index is returned.

Remarks

This is equivalent to IWICBitmapEncoder::CreateNewFrame, but returns additional information about the array index, mip level and slice of the newly created frame. In contrast to IWICBitmapEncoder::CreateNewFrame, there is no SharpDX.Win32.PropertyBag* parameter because individual DDS frames do not have separate properties.

Operators

explicit operator DdsEncoder(nint)

public static explicit operator DdsEncoder(nint nativePtr)

Parameters

nativePtr nint

Returns

DdsEncoder