Skip to main content

Struct RawImageSpecification

Describes a raw image.

Assembly: Dalamud.dll
View Source
Declaration
public record struct RawImageSpecification : IEquatable<RawImageSpecification>

Implements:
System.IEquatable<Dalamud.Interface.Textures.RawImageSpecification>

Properties

Width

Gets or sets the width of the raw image.

View Source
Declaration
public int Width { readonly get; set; }

Height

Gets or sets the height of the raw image.

View Source
Declaration
public int Height { readonly get; set; }

Pitch

Gets or sets the pitch of the raw image in bytes.

View Source
Declaration
public int Pitch { readonly get; set; }

DxgiFormat

Gets or sets the format of the raw image.

View Source
Declaration
public int DxgiFormat { readonly get; set; }

BitsPerPixel

Gets the number of bits per pixel.

View Source
Declaration
public int BitsPerPixel { get; }

Methods

Bgra32(int, int)

Creates a new instance of Dalamud.Interface.Textures.RawImageSpecification record using the given resolution, in B8G8R8A8(BGRA32) UNorm pixel format.

View Source
Declaration
public static RawImageSpecification Bgra32(int width, int height)
Returns

Dalamud.Interface.Textures.RawImageSpecification: The new instance.

Parameters
TypeNameDescription
System.Int32widthThe width.
System.Int32heightThe height.

Rgba32(int, int)

Creates a new instance of Dalamud.Interface.Textures.RawImageSpecification record using the given resolution, in R8G8B8A8(RGBA32) UNorm pixel format.

View Source
Declaration
public static RawImageSpecification Rgba32(int width, int height)
Returns

Dalamud.Interface.Textures.RawImageSpecification: The new instance.

Parameters
TypeNameDescription
System.Int32widthThe width.
System.Int32heightThe height.

A8(int, int)

Creates a new instance of Dalamud.Interface.Textures.RawImageSpecification record using the given resolution, in A8 UNorm pixel format.

View Source
Declaration
public static RawImageSpecification A8(int width, int height)
Returns

Dalamud.Interface.Textures.RawImageSpecification: The new instance.

Parameters
TypeNameDescription
System.Int32widthThe width.
System.Int32heightThe height.

ToString()

Returns the fully qualified type name of this instance.

View Source
Declaration
public override string ToString()
Returns

System.String: The fully qualified type name.

Implements

  • System.IEquatable<Dalamud.Interface.Textures.RawImageSpecification>