Assembly Idmr.ActImage
Class Idmr.ActImage.Act - Object to work with *.ACT image files found in TIE95, XvT and BoP
| Constructor | Act(string file) - Loads an Act image from file | |
| file - Full path to the ACT file | ||
| System.ArgumentException | ||
| System.UnauthorizedAccessException | ||
| System.IO.FileNotFoundException | ||
| Constructor | Act(System.Drawing.Bitmap image) - Creates a new Act image from bitmap | |
| image - Image to create Act with | ||
| System.ArgumentException | ||
| Property | System.Drawing.Point | Center - Gets or Sets the pixel location used to "pin" the Act object in-game |
| Property | string | FileName - Gets the file name of the Act object |
| Property | string | FilePath - Gets the full path of the Act object |
| Property | System.Drawing.Point[] | FrameLocations - Gets the array of (Left,Top) values of each frame, relative to Center |
| Property | int | Height - Gets the overall height of the Act object |
| Property | int | NumberOfFrames - Gets the number of images contained within the Act object |
| Property | System.Drawing.Size | Size - Gets the overall size of the Act object |
| Property | int | Width - Gets the overall width of the Act object |
| Method | Save( ) - Writes the Act object to its original location | |
| System.Exception | ||
| System.IO.DirectoryNotFoundException | ||
| System.UnauthorizedAccessException | ||
| Method | Save(string file) - Writes the Act object to a new location | |
| file - Full path to the new ACT file | ||
| System.Exception | ||
| System.IO.DirectoryNotFoundException | ||
| System.UnauthorizedAccessException | ||
| Method | System.Drawing.Color | GetColor(int frame, int index) - Returns Color of the indicated palette entry |
| frame - Zero-indexed frame | ||
| index - Color index | ||
| System.IndexOutOfRangeException | ||
| Method | System.Drawing.Bitmap | GetFrame(int frame) - Returns 8bppIndexed image of selected frame |
| frame - Zero-indexed frame | ||
| System.IndexOutOfRangeException | ||
| Method | System.Drawing.Size | GetFrameSize(int frame) - Returns Size of the given frame |
| frame - Zero-indexed frame | ||
| System.IndexOutOfRangeException | ||
| Method | int | GetNumberOfColors(int frame) - Returns number of colors defined in the frame |
| frame - Zero-indexed frame | ||
| System.IndexOutOfRangeException | ||
| Method | SetColor(int frame, int index, System.Drawing.Color color) | |
| frame - Zero-indexed frame | ||
| index - Color index | ||
| color - Color to be used | ||
| System.IndexOutOfRangeException | ||
| Method | SetColor(int frame, int index, byte r, byte g, byte b) | |
| frame - Zero-indexed frame | ||
| index - Color index | ||
| r - R value of color to be used | ||
| g - G value of color to be used | ||
| b - B value of color to be used | ||
| System.IndexOutOfRangeException | ||
| Method | SetFrame(int frame, System.Drawing.Bitmap image) | |
| frame - Zero-indexed frame | ||
| image - New image. If 8bppIndexed, image's palette is used, else existing is | ||
| System.ArgumentException | ||
| System.IndexOutOfRangeException |