C# Class KFreonLib.Textures.TPFTexInfo

Formerly TexNodeHash. Provides an object to store TPFTools texture objects.
Inheritance: abstractTexInfo, IDisposable
Afficher le fichier Open project: ME3Explorer/ME3Explorer Class Usage Examples

Méthodes publiques

Свойство Type Description
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

Méthodes publiques

Méthode Description
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

Method Details

Autofixedpath() public méthode

public Autofixedpath ( string TemporaryPath ) : string
TemporaryPath string
Résultat string

CalculateMipCount() public static méthode

public static CalculateMipCount ( int Width, int Height ) : int
Width int
Height int
Résultat int

Clone() public méthode

Clones current TPF texture object.
public Clone ( ) : TPFTexInfo
Résultat TPFTexInfo

Convert() public méthode

Converts texture.
public Convert ( ) : void
Résultat void

CreateModJob() public méthode

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.
Résultat KFreonLib.Scripting.ModMaker.ModJob

DisplayString() public méthode

public DisplayString ( int index ) : string
index int
Résultat string

DisplayString() public méthode

public DisplayString ( string file ) : string
file string
Résultat string

Dispose() public méthode

public Dispose ( ) : void
Résultat void

EnumerateDetails() public méthode

Collects details of current texture, like thumbnail, number of mips, and format.
public EnumerateDetails ( ) : void
Résultat void

Extract() public méthode

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.
Résultat byte[]

FormatTexDetails() public méthode

Format texture details for TPFTools.
public FormatTexDetails ( bool Analysed ) : String
Analysed bool Add extra stuff if analysis has been performed.
Résultat String

GetFileFromDisplay() public méthode

public GetFileFromDisplay ( string file ) : string
file string
Résultat string

TPFTexInfo() public méthode

Constructor for TPF texture object. Placeholder for lists.
public TPFTexInfo ( ) : KFreonLib.Debugging
Résultat KFreonLib.Debugging

TPFTexInfo() public méthode

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
Résultat KFreonLib.Debugging

UndoAnalysis() public méthode

public UndoAnalysis ( int newGameVersion ) : void
newGameVersion int
Résultat void

UpdateTex() public méthode

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.
Résultat void

ValidateDimensions() public méthode

public ValidateDimensions ( TreeTexInfo tex = null ) : bool
tex TreeTexInfo
Résultat bool

Property Details

AutofixSuccess public_oe property

public bool AutofixSuccess
Résultat bool

ExpectedFormat public_oe property

public ImageEngineFormat ExpectedFormat
Résultat ImageEngineFormat

ExpectedMips public_oe property

public int ExpectedMips
Résultat int

FileDuplicates public_oe property

public List FileDuplicates
Résultat List

FileName public_oe property

public String FileName
Résultat String

FilePath public_oe property

public string FilePath
Résultat string

Height public_oe property

public int Height
Résultat int

TPFInd public_oe property

public int TPFInd
Résultat int

ThumbInd public_oe property

public int ThumbInd
Résultat int

Thumbnail public_oe property

public MemoryStream,System.IO Thumbnail
Résultat System.IO.MemoryStream

TreeDuplicates public_oe property

public List TreeDuplicates
Résultat List

Width public_oe property

public int Width
Résultat int

found public_oe property

public bool found
Résultat bool

wasAnalysed public_oe property

public bool wasAnalysed
Résultat bool

zippy public_oe property

public ZipReader,SaltTPF zippy
Résultat SaltTPF.ZipReader