C# Класс KFreonLib.Textures.TPFTexInfo

Formerly TexNodeHash. Provides an object to store TPFTools texture objects.
Наследование: abstractTexInfo, IDisposable
Показать файл Открыть проект Примеры использования класса

Открытые свойства

Свойство Тип Описание
AutofixSuccess bool
ExpectedFormat ImageEngineFormat
ExpectedMips int
FileDuplicates List
FileName String
FilePath string
Height int
TPFInd int
ThumbInd int
Thumbnail System.IO.MemoryStream
TreeDuplicates List
Width int
found bool
wasAnalysed bool
zippy SaltTPF.ZipReader

Открытые методы

Метод Описание
Autofixedpath ( string TemporaryPath ) : string
CalculateMipCount ( int Width, int Height ) : int
Clone ( ) : TPFTexInfo

Clones current TPF texture object.

Convert ( ) : void

Converts texture.

CreateModJob ( string ExecFolder, string pathBIOGame ) : ModMaker.ModJob

Create a .mod job from current TPF texture object.

DisplayString ( int index ) : string
DisplayString ( string file ) : string
Dispose ( ) : void
EnumerateDetails ( ) : void

Collects details of current texture, like thumbnail, number of mips, and format.

Extract ( string ExtractPath, bool ToMemory = false ) : byte[]

Extracts image from TPF or copies image data from external file. Also able to return a byte[] of image data.

FormatTexDetails ( bool Analysed ) : String

Format texture details for TPFTools.

GetFileFromDisplay ( string file ) : string
TPFTexInfo ( ) : KFreonLib.Debugging

Constructor for TPF texture object. Placeholder for lists.

TPFTexInfo ( string filename, int tpfind, string path, ZipReader zip, int WhichGame ) : KFreonLib.Debugging

Constructor for TPF texture objects.

UndoAnalysis ( int newGameVersion ) : void
UpdateTex ( int treeInd, TreeTexInfo treetex ) : void

Updates current texture object from tree.

ValidateDimensions ( TreeTexInfo tex = null ) : bool

Описание методов

Autofixedpath() публичный Метод

public Autofixedpath ( string TemporaryPath ) : string
TemporaryPath string
Результат string

CalculateMipCount() публичный статический Метод

public static CalculateMipCount ( int Width, int Height ) : int
Width int
Height int
Результат int

Clone() публичный Метод

Clones current TPF texture object.
public Clone ( ) : TPFTexInfo
Результат TPFTexInfo

Convert() публичный Метод

Converts texture.
public Convert ( ) : void
Результат void

CreateModJob() публичный Метод

Create a .mod job from current TPF texture object.
public CreateModJob ( string ExecFolder, string pathBIOGame ) : ModMaker.ModJob
ExecFolder string Path to ME3Explorer \exec\ folder.
pathBIOGame string Path to BIOGame.
Результат KFreonLib.Scripting.ModMaker.ModJob

DisplayString() публичный Метод

public DisplayString ( int index ) : string
index int
Результат string

DisplayString() публичный Метод

public DisplayString ( string file ) : string
file string
Результат string

Dispose() публичный Метод

public Dispose ( ) : void
Результат void

EnumerateDetails() публичный Метод

Collects details of current texture, like thumbnail, number of mips, and format.
public EnumerateDetails ( ) : void
Результат void

Extract() публичный Метод

Extracts image from TPF or copies image data from external file. Also able to return a byte[] of image data.
public Extract ( string ExtractPath, bool ToMemory = false ) : byte[]
ExtractPath string Path to extract image to.
ToMemory bool OPTIONAL: If true, byte[] of image data returned.
Результат byte[]

FormatTexDetails() публичный Метод

Format texture details for TPFTools.
public FormatTexDetails ( bool Analysed ) : String
Analysed bool Add extra stuff if analysis has been performed.
Результат String

GetFileFromDisplay() публичный Метод

public GetFileFromDisplay ( string file ) : string
file string
Результат string

TPFTexInfo() публичный Метод

Constructor for TPF texture object. Placeholder for lists.
public TPFTexInfo ( ) : KFreonLib.Debugging
Результат KFreonLib.Debugging

TPFTexInfo() публичный Метод

Constructor for TPF texture objects.
public TPFTexInfo ( string filename, int tpfind, string path, ZipReader zip, int WhichGame ) : KFreonLib.Debugging
filename string Filename of texture.
tpfind int Index of texture inside TPF, if applicable.
path string Path of texture, if applicable.
zip SaltTPF.ZipReader Zippy of TPF, if applicable.
WhichGame int
Результат KFreonLib.Debugging

UndoAnalysis() публичный Метод

public UndoAnalysis ( int newGameVersion ) : void
newGameVersion int
Результат void

UpdateTex() публичный Метод

Updates current texture object from tree.
public UpdateTex ( int treeInd, TreeTexInfo treetex ) : void
treeInd int Index of texture in tree.
treetex TreeTexInfo Tree texture object to get info from.
Результат void

ValidateDimensions() публичный Метод

public ValidateDimensions ( TreeTexInfo tex = null ) : bool
tex TreeTexInfo
Результат bool

Описание свойств

AutofixSuccess публичное свойство

public bool AutofixSuccess
Результат bool

ExpectedFormat публичное свойство

public ImageEngineFormat ExpectedFormat
Результат ImageEngineFormat

ExpectedMips публичное свойство

public int ExpectedMips
Результат int

FileDuplicates публичное свойство

public List FileDuplicates
Результат List

FileName публичное свойство

public String FileName
Результат String

FilePath публичное свойство

public string FilePath
Результат string

Height публичное свойство

public int Height
Результат int

TPFInd публичное свойство

public int TPFInd
Результат int

ThumbInd публичное свойство

public int ThumbInd
Результат int

Thumbnail публичное свойство

public MemoryStream,System.IO Thumbnail
Результат System.IO.MemoryStream

TreeDuplicates публичное свойство

public List TreeDuplicates
Результат List

Width публичное свойство

public int Width
Результат int

found публичное свойство

public bool found
Результат bool

wasAnalysed публичное свойство

public bool wasAnalysed
Результат bool

zippy публичное свойство

public ZipReader,SaltTPF zippy
Результат SaltTPF.ZipReader