public GifFrame GetFrame(int n) { if ((n >= 0) && (n < frameCount)) return (GifFrame)frames[n]; else throw new ArgumentOutOfRangeException(); }