Class DatImage
Assembly: JeremyAnsel.Xwa.Dat.dll
Syntax
Constructors
|
Edit this page
View Source
DatImage()
Declaration
|
Edit this page
View Source
DatImage(short, short)
Declaration
public DatImage(short groupId, short imageId)
Parameters
Properties
|
Edit this page
View Source
ColorsCount
Declaration
public short ColorsCount { get; }
Property Value
|
Edit this page
View Source
Declaration
public DatImageFormat Format { get; }
Property Value
|
Edit this page
View Source
GroupId
Declaration
public short GroupId { get; set; }
Property Value
|
Edit this page
View Source
Height
Declaration
public short Height { get; }
Property Value
|
Edit this page
View Source
ImageId
Declaration
public short ImageId { get; set; }
Property Value
|
Edit this page
View Source
OffsetX
Declaration
public int OffsetX { get; set; }
Property Value
|
Edit this page
View Source
OffsetY
Declaration
public int OffsetY { get; set; }
Property Value
|
Edit this page
View Source
Width
Declaration
public short Width { get; }
Property Value
Methods
|
Edit this page
View Source
Declaration
public void ConvertToFormat(DatImageFormat format)
Parameters
|
Edit this page
View Source
Declaration
public void ConvertToFormat23()
|
Edit this page
View Source
Declaration
public void ConvertToFormat24()
|
Edit this page
View Source
Declaration
public void ConvertToFormat25()
|
Edit this page
View Source
Declaration
public void ConvertToFormat25Compressed()
|
Edit this page
View Source
Declaration
public void ConvertToFormat7()
|
Edit this page
View Source
Declaration
public void ConvertToFormatBc3()
|
Edit this page
View Source
Declaration
public void ConvertToFormatBc5()
|
Edit this page
View Source
Declaration
public void ConvertToFormatBc7()
|
Edit this page
View Source
FlipUpsideDown()
Declaration
public void FlipUpsideDown()
|
Edit this page
View Source
FromFile(short, short, Stream?)
Declaration
public static DatImage FromFile(short groupId, short imageId, Stream? stream)
Parameters
Returns
|
Edit this page
View Source
Declaration
public static DatImage FromFile(short groupId, short imageId, Stream? stream, DatImageFormat format)
Parameters
Returns
|
Edit this page
View Source
FromFile(short, short, string)
Declaration
public static DatImage FromFile(short groupId, short imageId, string fileName)
Parameters
Returns
|
Edit this page
View Source
Declaration
public static DatImage FromFile(short groupId, short imageId, string fileName, DatImageFormat format)
Parameters
Returns
|
Edit this page
View Source
Declaration
public static DatImage FromMemory(short groupId, short imageId, DatImageFormat format, short width, short height, short colorsCount, byte[]? rawData)
Parameters
Returns
|
Edit this page
View Source
GetImageData()
Declaration
public byte[]? GetImageData()
Returns
|
Edit this page
View Source
GetRawData()
Declaration
public byte[]? GetRawData()
Returns
|
Edit this page
View Source
MakeColorTransparent(byte, byte, byte)
Declaration
public void MakeColorTransparent(byte red, byte green, byte blue)
Parameters
|
Edit this page
View Source
MakeColorTransparent(byte, byte, byte, byte, byte, byte)
Declaration
public void MakeColorTransparent(byte red0, byte green0, byte blue0, byte red1, byte green1, byte blue1)
Parameters
|
Edit this page
View Source
ReplaceWithFile(Stream?)
Declaration
public void ReplaceWithFile(Stream? stream)
Parameters
Type |
Name |
Description |
Stream |
stream |
|
|
Edit this page
View Source
Declaration
public void ReplaceWithFile(Stream? stream, DatImageFormat format)
Parameters
|
Edit this page
View Source
ReplaceWithFile(string)
Declaration
public void ReplaceWithFile(string fileName)
Parameters
Type |
Name |
Description |
string |
fileName |
|
|
Edit this page
View Source
Declaration
public void ReplaceWithFile(string fileName, DatImageFormat format)
Parameters
|
Edit this page
View Source
Declaration
public void ReplaceWithMemory(DatImageFormat format, short width, short height, short colorsCount, byte[]? data)
Parameters
|
Edit this page
View Source
Declaration
public void Save(Stream? stream, ImageFormat format)
Parameters
|
Edit this page
View Source
Save(string)
Declaration
public void Save(string fileName)
Parameters
Type |
Name |
Description |
string |
fileName |
|