Gifitti  1.0.0.0
GIF Modification Software
Public Member Functions | Public Attributes | Properties | List of all members
Gifitti.Models.GifModel Class Reference

Software model of a GIF, Encapsulated with bassic opperations on GIF images. More...

Public Member Functions

 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...
 

Public Attributes

int startFrame = 0
 
int endFrame = 0
 

Properties

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...
 

Detailed Description

Software model of a GIF, Encapsulated with bassic opperations on GIF images.

Constructor & Destructor Documentation

§ GifModel()

Gifitti.Models.GifModel.GifModel ( String  path)

Load a GIF into the software model from the system path "path"

Parameters
pathLocation of the GIF being loaded.

Member Function Documentation

§ GetFrame()

Image Gifitti.Models.GifModel.GetFrame ( int  index)

Gets the frame index.

Parameters
indexFrame 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
newWidthNew Width dimension in px.
newHeightNew Height dimension in px.

§ returnSubGif()

void Gifitti.Models.GifModel.returnSubGif ( int  start,
int  stop 
)

Fetches a sub gif over frames start -> stop

Parameters
startInitial Frame.
stopEnd Frame.

§ saveGif()

void Gifitti.Models.GifModel.saveGif ( string  path)

Takes the full path of a GIF save location, extension included

Parameters
pathString representation of path to save the gif to. Name and extension of gif mandatory.
Exceptions
DirectoryNotFoundExceptionThrown if the path is not valid for the local system, OR the file has an extension other than [G|g][I|i][F|f]

Property Documentation

§ 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: