Software model of a GIF, Encapsulated with bassic opperations on GIF images.
More...
|
| GifModel (String path) |
| Load a GIF into the software model from the system path "path" More...
|
|
void | resetToOriginalGif () |
| Changes the loaded GIF to be what was originally loaded by the User. If a new file is opened the current original GIF is overloaded. More...
|
|
void | saveGif (string path) |
| Takes the full path of a GIF save location, extension included More...
|
|
void | resizeGif (int newWidth, int newHeight) |
| Resizes a GIF to be newWidth x newHeight px More...
|
|
void | returnSubGif (int start, int stop) |
| Fetches a sub gif over frames start -> stop More...
|
|
Image | GetNextFrame () |
| Fetches the GIFs next viewable frame More...
|
|
Image | GetFrame (int index) |
| Gets the frame index. More...
|
|
|
int | startFrame = 0 |
|
int | endFrame = 0 |
|
|
Image | gifImage [get, set] |
|
Image | originalGif [get] |
|
int | numberOfFrames [get] |
|
bool | ReverseAtEnd [get, set] |
| Whether the gif should play backwards when it reaches the end More...
|
|
Software model of a GIF, Encapsulated with bassic opperations on GIF images.
§ GifModel()
Gifitti.Models.GifModel.GifModel |
( |
String |
path | ) |
|
Load a GIF into the software model from the system path "path"
- Parameters
-
path | Location of the GIF being loaded. |
§ GetFrame()
Image Gifitti.Models.GifModel.GetFrame |
( |
int |
index | ) |
|
Gets the frame index.
- Parameters
-
index | Frame number to fetch |
- Returns
- Frame number index in the model
§ GetNextFrame()
Image Gifitti.Models.GifModel.GetNextFrame |
( |
| ) |
|
Fetches the GIFs next viewable frame
- Returns
- Next frame to be returned to the control.
§ resetToOriginalGif()
void Gifitti.Models.GifModel.resetToOriginalGif |
( |
| ) |
|
Changes the loaded GIF to be what was originally loaded by the User. If a new file is opened the current original GIF is overloaded.
§ resizeGif()
void Gifitti.Models.GifModel.resizeGif |
( |
int |
newWidth, |
|
|
int |
newHeight |
|
) |
| |
Resizes a GIF to be newWidth x newHeight px
- Parameters
-
newWidth | New Width dimension in px. |
newHeight | New Height dimension in px. |
§ returnSubGif()
void Gifitti.Models.GifModel.returnSubGif |
( |
int |
start, |
|
|
int |
stop |
|
) |
| |
Fetches a sub gif over frames start -> stop
- Parameters
-
start | Initial Frame. |
stop | End Frame. |
§ saveGif()
void Gifitti.Models.GifModel.saveGif |
( |
string |
path | ) |
|
Takes the full path of a GIF save location, extension included
- Parameters
-
path | String representation of path to save the gif to. Name and extension of gif mandatory. |
- Exceptions
-
DirectoryNotFoundException | Thrown if the path is not valid for the local system, OR the file has an extension other than [G|g][I|i][F|f] |
§ ReverseAtEnd
bool Gifitti.Models.GifModel.ReverseAtEnd |
|
getset |
Whether the gif should play backwards when it reaches the end
The documentation for this class was generated from the following file: