C# Class KFreonLib.Textures.ME3SaltTexture2D

Inheritance: ITexture2D
Datei anzeigen Open project: ME3Explorer/ME3Explorer Class Usage Examples

Public Properties

Property Type Description
Class String
UnpackNum int
exportOffset int
headerData byte[]
imageData byte[]
properties SaltPropertyReader.Property>.Dictionary

Private Properties

Property Type Description
ChooseNewCache void
MakeCache void
MoveCaches void

Public Methods

Method Description
CopyImgList ( ITexture2D tex2D, IPCCObject PCC ) : void
CopyImgList ( ME3SaltTexture2D inTex, ME3PCCObject pcc ) : void
Dispose ( ) : void
DumpImg ( ImageSize imgSize, string archiveDir ) : byte[]

Gets the raw image data, mainly for use with AK's image displayer

DumpTexture ( string filename ) : void
GenerateImageInfo ( ) : IImageInfo
GetImage ( int size = -1 ) : System.Drawing.Bitmap
GetImageData ( int size = -1 ) : byte[]
GetTexArchive ( string dir ) : String
LowResFix ( ) : void
ME3SaltTexture2D ( ) : System
ME3SaltTexture2D ( ME3PCCObject pccObj, int texIdx, String pathBioGame, uint hash ) : System
ME3SaltTexture2D ( string name, List pccs, List ExpIDs, uint hash, string pathBIOGame, int GameVersion ) : System
OneImageToRuleThemAll ( ImageFile im, string archiveDir, byte imgData ) : void
ToArray ( uint pccExportDataOffset, IPCCObject pcc ) : byte[]
ToArray ( uint pccExportDataOffset, ME3PCCObject pcc ) : byte[]
addBiggerImage ( ImageFile im, string archiveDir ) : void
extractImage ( ImageInfo imgInfo, bool NoOutput, string archiveDir = null, string fileName = null ) : byte[]
extractImage ( string strImgSize, bool NoOutput, string archiveDir = null, string fileName = null ) : byte[]
extractMaxImage ( bool NoOutput, string archiveDir = null, string fileName = null ) : byte[]
getFileFormat ( ) : string
getPropertyList ( ) : List
removeImage ( ) : void
replaceImage ( string strImgSize, ImageFile im, string archiveDir ) : void
replaceImage2 ( string strImgSize, ImageFile im, string archiveDir ) : void
singleImageUpscale ( ImageFile im, string archiveDir ) : void
upscaleImage ( ME3SaltTexture2D inTex ) : void

Protected Methods

Method Description
Dispose ( bool disposing ) : void

Private Methods

Method Description
ChooseNewCache ( string bioPath, int buffLength ) : void
MakeCache ( String filename, String biopath ) : void
MoveCaches ( string cookedPath, string NewCache ) : void

Method Details

CopyImgList() public method

public CopyImgList ( ITexture2D tex2D, IPCCObject PCC ) : void
tex2D ITexture2D
PCC IPCCObject
return void

CopyImgList() public method

public CopyImgList ( ME3SaltTexture2D inTex, ME3PCCObject pcc ) : void
inTex ME3SaltTexture2D
pcc KFreonLib.PCCObjects.ME3PCCObject
return void

Dispose() public method

public Dispose ( ) : void
return void

Dispose() protected method

protected Dispose ( bool disposing ) : void
disposing bool
return void

DumpImg() public method

Gets the raw image data, mainly for use with AK's image displayer
public DumpImg ( ImageSize imgSize, string archiveDir ) : byte[]
imgSize AmaroK86.ImageFormat.ImageSize
archiveDir string
return byte[]

DumpTexture() public method

public DumpTexture ( string filename ) : void
filename string
return void

GenerateImageInfo() public method

public GenerateImageInfo ( ) : IImageInfo
return IImageInfo

GetImage() public method

public GetImage ( int size = -1 ) : System.Drawing.Bitmap
size int
return System.Drawing.Bitmap

GetImageData() public method

public GetImageData ( int size = -1 ) : byte[]
size int
return byte[]

GetTexArchive() public method

public GetTexArchive ( string dir ) : String
dir string
return String

LowResFix() public method

public LowResFix ( ) : void
return void

ME3SaltTexture2D() public method

public ME3SaltTexture2D ( ) : System
return System

ME3SaltTexture2D() public method

public ME3SaltTexture2D ( ME3PCCObject pccObj, int texIdx, String pathBioGame, uint hash ) : System
pccObj KFreonLib.PCCObjects.ME3PCCObject
texIdx int
pathBioGame String
hash uint
return System

ME3SaltTexture2D() public method

public ME3SaltTexture2D ( string name, List pccs, List ExpIDs, uint hash, string pathBIOGame, int GameVersion ) : System
name string
pccs List
ExpIDs List
hash uint
pathBIOGame string
GameVersion int
return System

OneImageToRuleThemAll() public method

public OneImageToRuleThemAll ( ImageFile im, string archiveDir, byte imgData ) : void
im AmaroK86.ImageFormat.ImageFile
archiveDir string
imgData byte
return void

ToArray() public method

public ToArray ( uint pccExportDataOffset, IPCCObject pcc ) : byte[]
pccExportDataOffset uint
pcc IPCCObject
return byte[]

ToArray() public method

public ToArray ( uint pccExportDataOffset, ME3PCCObject pcc ) : byte[]
pccExportDataOffset uint
pcc KFreonLib.PCCObjects.ME3PCCObject
return byte[]

addBiggerImage() public method

public addBiggerImage ( ImageFile im, string archiveDir ) : void
im AmaroK86.ImageFormat.ImageFile
archiveDir string
return void

extractImage() public method

public extractImage ( ImageInfo imgInfo, bool NoOutput, string archiveDir = null, string fileName = null ) : byte[]
imgInfo ImageInfo
NoOutput bool
archiveDir string
fileName string
return byte[]

extractImage() public method

public extractImage ( string strImgSize, bool NoOutput, string archiveDir = null, string fileName = null ) : byte[]
strImgSize string
NoOutput bool
archiveDir string
fileName string
return byte[]

extractMaxImage() public method

public extractMaxImage ( bool NoOutput, string archiveDir = null, string fileName = null ) : byte[]
NoOutput bool
archiveDir string
fileName string
return byte[]

getFileFormat() public method

public getFileFormat ( ) : string
return string

getPropertyList() public method

public getPropertyList ( ) : List
return List

removeImage() public method

public removeImage ( ) : void
return void

replaceImage() public method

public replaceImage ( string strImgSize, ImageFile im, string archiveDir ) : void
strImgSize string
im AmaroK86.ImageFormat.ImageFile
archiveDir string
return void

replaceImage2() public method

public replaceImage2 ( string strImgSize, ImageFile im, string archiveDir ) : void
strImgSize string
im AmaroK86.ImageFormat.ImageFile
archiveDir string
return void

singleImageUpscale() public method

public singleImageUpscale ( ImageFile im, string archiveDir ) : void
im AmaroK86.ImageFormat.ImageFile
archiveDir string
return void

upscaleImage() public method

public upscaleImage ( ME3SaltTexture2D inTex ) : void
inTex ME3SaltTexture2D
return void

Property Details

Class public_oe property

public String Class
return String

UnpackNum public_oe property

public int UnpackNum
return int

exportOffset public_oe property

public int exportOffset
return int

headerData public_oe property

public byte[] headerData
return byte[]

imageData public_oe property

public byte[] imageData
return byte[]

properties public_oe property

public Dictionary properties
return SaltPropertyReader.Property>.Dictionary