Struct RawImageSpecification
Describes a raw image.
Assembly: Dalamud.dll
View Source
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
public int Width { readonly get; set; }
Height
Gets or sets the height of the raw image.
View Source
public int Height { readonly get; set; }
Pitch
Gets or sets the pitch of the raw image in bytes.
View Source
public int Pitch { readonly get; set; }
DxgiFormat
Gets or sets the format of the raw image.
View Source
public int DxgiFormat { readonly get; set; }
BitsPerPixel
Gets the number of bits per pixel.
View Source
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
public static RawImageSpecification Bgra32(int width, int height)
Returns
Dalamud.Interface.Textures.RawImageSpecification: The new instance.
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | width | The width. |
System.Int32 | height | The 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
public static RawImageSpecification Rgba32(int width, int height)
Returns
Dalamud.Interface.Textures.RawImageSpecification: The new instance.
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | width | The width. |
System.Int32 | height | The 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
public static RawImageSpecification A8(int width, int height)
Returns
Dalamud.Interface.Textures.RawImageSpecification: The new instance.
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | width | The width. |
System.Int32 | height | The height. |
ToString()
Returns the fully qualified type name of this instance.
View Source
public override string ToString()
Returns
System.String
: The fully qualified type name.
Implements
System.IEquatable<Dalamud.Interface.Textures.RawImageSpecification>