C# Class XCom.Interfaces.IXCImageFile

Class that contains all information needed to read/save image files and collections. This class should not be instantiated directly. Upon startup, objects from derived classes will be created and tracked
Inheritance: IAssemblyLoadable, IOpenSave
Afficher le fichier Open project: pmprog/OpenXCOM.Tools Class Usage Examples

Protected Properties

Свойство Type Description
author string
defPal Palette
expDesc string
ext string
fileOptions xcFileOptions
imageSize System.Drawing.Size
singleFile string

Méthodes publiques

Méthode Description
IXCImageFile ( ) : System

Creates an object of this class with width and height of 0

IXCImageFile ( int width, int height ) : System

It is not recommended to instantiate objects of this type directly. See PckView.xcProfile for a generic implementation that does not throw runtime exceptions

LoadFile ( string directory, string file ) : XCImageCollection

Calls LoadFile with ImageSize.Width and ImageSize.Height

LoadFile ( string directory, string file, int imgWid, int imgHei ) : XCImageCollection

Method that calls the overloaded load function in order to do some similar functionality across all instances of this class

LoadFile ( string directory, string file, int imgWid, int imgHei, Palette pal ) : XCImageCollection
RegisterFile ( ) : bool

See: AssemblyLoadable.RegisterFile

SaveCollection ( string directory, string file, XCImageCollection images ) : void

Saves a collection

Unload ( ) : void

Méthodes protégées

Méthode Description
LoadFileOverride ( string directory, string file, int imgWid, int imgHei, Palette pal ) : XCImageCollection

Load a file and return a collection of images

Method Details

IXCImageFile() public méthode

Creates an object of this class with width and height of 0
public IXCImageFile ( ) : System
Résultat System

IXCImageFile() public méthode

It is not recommended to instantiate objects of this type directly. See PckView.xcProfile for a generic implementation that does not throw runtime exceptions
public IXCImageFile ( int width, int height ) : System
width int Default width
height int Default Height
Résultat System

LoadFile() public méthode

Calls LoadFile with ImageSize.Width and ImageSize.Height
public LoadFile ( string directory, string file ) : XCImageCollection
directory string
file string
Résultat XCImageCollection

LoadFile() public méthode

Method that calls the overloaded load function in order to do some similar functionality across all instances of this class
public LoadFile ( string directory, string file, int imgWid, int imgHei ) : XCImageCollection
directory string
file string
imgWid int
imgHei int
Résultat XCImageCollection

LoadFile() public méthode

public LoadFile ( string directory, string file, int imgWid, int imgHei, Palette pal ) : XCImageCollection
directory string
file string
imgWid int
imgHei int
pal Palette
Résultat XCImageCollection

LoadFileOverride() protected méthode

Load a file and return a collection of images
protected LoadFileOverride ( string directory, string file, int imgWid, int imgHei, Palette pal ) : XCImageCollection
directory string
file string
imgWid int
imgHei int
pal Palette
Résultat XCImageCollection

RegisterFile() public méthode

See: AssemblyLoadable.RegisterFile
public RegisterFile ( ) : bool
Résultat bool

SaveCollection() public méthode

Saves a collection
public SaveCollection ( string directory, string file, XCImageCollection images ) : void
directory string Directory to save to
file string Filename
images XCImageCollection images to save in this format
Résultat void

Unload() public méthode

public Unload ( ) : void
Résultat void

Property Details

author protected_oe property

protected string author
Résultat string

defPal protected_oe property

protected Palette defPal
Résultat Palette

expDesc protected_oe property

protected string expDesc
Résultat string

ext protected_oe property

protected string ext
Résultat string

fileOptions protected_oe property

protected xcFileOptions,XCom.Interfaces fileOptions
Résultat xcFileOptions

imageSize protected_oe property

protected System.Drawing.Size imageSize
Résultat System.Drawing.Size

singleFile protected_oe property

protected string singleFile
Résultat string