C# Класс 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
Наследование: IAssemblyLoadable, IOpenSave
Показать файл Открыть проект Примеры использования класса

Защищенные свойства (Protected)

Свойство Тип Описание
author string
defPal Palette
expDesc string
ext string
fileOptions xcFileOptions
imageSize System.Drawing.Size
singleFile string

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

Метод Описание
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

Защищенные методы

Метод Описание
LoadFileOverride ( string directory, string file, int imgWid, int imgHei, Palette pal ) : XCImageCollection

Load a file and return a collection of images

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

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

Creates an object of this class with width and height of 0
public IXCImageFile ( ) : System
Результат System

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

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
Результат System

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

Calls LoadFile with ImageSize.Width and ImageSize.Height
public LoadFile ( string directory, string file ) : XCImageCollection
directory string
file string
Результат XCImageCollection

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

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
Результат XCImageCollection

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

public LoadFile ( string directory, string file, int imgWid, int imgHei, Palette pal ) : XCImageCollection
directory string
file string
imgWid int
imgHei int
pal Palette
Результат XCImageCollection

LoadFileOverride() защищенный Метод

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
Результат XCImageCollection

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

See: AssemblyLoadable.RegisterFile
public RegisterFile ( ) : bool
Результат bool

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

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
Результат void

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

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

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

author защищенное свойство

protected string author
Результат string

defPal защищенное свойство

protected Palette defPal
Результат Palette

expDesc защищенное свойство

protected string expDesc
Результат string

ext защищенное свойство

protected string ext
Результат string

fileOptions защищенное свойство

protected xcFileOptions,XCom.Interfaces fileOptions
Результат xcFileOptions

imageSize защищенное свойство

protected System.Drawing.Size imageSize
Результат System.Drawing.Size

singleFile защищенное свойство

protected string singleFile
Результат string