C# Class KFreonLib.Textures.Creation

Provides functions to create texture objects.
Show file Open project: ME3Explorer/ME3Explorer

Public Methods

Method Description
CreateTexture2D ( ITexture2D tex2D, int WhichGame, string pathBIOGame ) : ITexture2D

Populates a Texture2D given a base Texture2D.

CreateTexture2D ( string texName, List pccs, List ExpIDs, int WhichGame, string pathBIOGame, uint hash ) : ITexture2D

Creates a Texture2D from a bunch of stuff.

CreateTexture2D ( string filename, int expID, int WhichGame, string pathBIOGame, uint hash ) : ITexture2D

Create a Texture2D from things.

GenerateThumbnail ( Stream sourceStream, string savePath, int maxWidth, int maxHeight ) : string
GenerateThumbnail ( string filename, int WhichGame, int expID, string pathBIOGame, string savepath, string execpath ) : string
LoadAKImageFile ( ImageFile im, string fileToLoad ) : ImageFile

Load an image into one of AK86's classes.

OverlayAndPickDetailed ( MemoryStream sourceStream, int width = 128, int height = 128 ) : MemoryStream

Private Methods

Method Description
Overlay ( System.Windows.Media.Imaging.BitmapSource source, System.Windows.Media.Imaging.BitmapSource overlay ) : System.Windows.Media.Imaging.BitmapSource

Overlays one image on top of another. Both images MUST be the same size.

Method Details

CreateTexture2D() public static method

Populates a Texture2D given a base Texture2D.
public static CreateTexture2D ( ITexture2D tex2D, int WhichGame, string pathBIOGame ) : ITexture2D
tex2D ITexture2D Base Texture2D. Most things missing.
WhichGame int Game target.
pathBIOGame string Path to BIOGame.
return ITexture2D

CreateTexture2D() public static method

Creates a Texture2D from a bunch of stuff.
public static CreateTexture2D ( string texName, List pccs, List ExpIDs, int WhichGame, string pathBIOGame, uint hash ) : ITexture2D
texName string Name of texture to create.
pccs List List of PCC's containing texture.
ExpIDs List List of ExpID's of texture in PCC's. MUST have same number of elements as in PCC's.
WhichGame int Game target.
pathBIOGame string Path to BIOGame.
hash uint Hash of texture.
return ITexture2D

CreateTexture2D() public static method

Create a Texture2D from things.
public static CreateTexture2D ( string filename, int expID, int WhichGame, string pathBIOGame, uint hash ) : ITexture2D
filename string Filename to load Texture2D from.
expID int ExpID of texture in question.
WhichGame int Game target.
pathBIOGame string Path to BIOGame.
hash uint Hash of texture.
return ITexture2D

GenerateThumbnail() public static method

public static GenerateThumbnail ( Stream sourceStream, string savePath, int maxWidth, int maxHeight ) : string
sourceStream Stream
savePath string
maxWidth int
maxHeight int
return string

GenerateThumbnail() public static method

public static GenerateThumbnail ( string filename, int WhichGame, int expID, string pathBIOGame, string savepath, string execpath ) : string
filename string
WhichGame int
expID int
pathBIOGame string
savepath string
execpath string
return string

LoadAKImageFile() public static method

Load an image into one of AK86's classes.
public static LoadAKImageFile ( ImageFile im, string fileToLoad ) : ImageFile
im AmaroK86.ImageFormat.ImageFile AK86 image already, just return it unless null. Then load from fileToLoad.
fileToLoad string Path to file to be loaded. Irrelevent if im is provided.
return AmaroK86.ImageFormat.ImageFile

OverlayAndPickDetailed() public static method

public static OverlayAndPickDetailed ( MemoryStream sourceStream, int width = 128, int height = 128 ) : MemoryStream
sourceStream System.IO.MemoryStream
width int
height int
return System.IO.MemoryStream