[DEV] Giffy - Recording was never so easy.

raimen

New Member
Apr 28, 2015
2
0
Hi guys,
I work at my newest project. It is called Giffy, don't install loads of software and then convert it to a GIF format. Giffy does all that for you.

Features:
- Able to manage your settings [N] [N]
- Record everything [N]
- Select a screen [N]
- Select how long you want the gif recording [N]
- Hotkeys [N]
And much more, but I need to think about it.
Don't bitch because it's written in C# haha
I use Ngif library, my gif encoder is copied from CodeProject (Credits goes to them)

Code:
namespace Giffy
{
public class AnimatedGifEncoder
{
protected int width; // image size
protected int height;
protected Color transparent = Color.Empty; // transparent color if given
protected int transIndex; // transparent index in color table
protected int repeat = -1; // no repeat
protected int delay = 0; // frame delay (hundredths)
protected bool started = false; // ready to output frames
// protected BinaryWriter bw;
protected FileStream fs;

protected Image image; // current frame
protected byte[] pixels; // BGR byte array from frame
protected byte[] indexedPixels; // converted frame indexed to palette
protected int colorDepth; // number of bit planes
protected byte[] colorTab; // RGB palette
protected bool[] usedEntry = new bool[256]; // active palette entries
protected int palSize = 7; // color table size (bits-1)
protected int dispose = -1; // disposal code (-1 = use default)
protected bool closeStream = false; // close stream when finished
protected bool firstFrame = true;
protected bool sizeSet = false; // if false, get size from first frame
protected int sample = 10; // default sample interval for quantizer

6yfxxj
 

Users who are viewing this thread

Top