Ejemplo n.º 1
0
        internal int SelectActiveFrame(GifFrameDimension dimension, int frameIndex)
        {
            var count = new[] { 0 };

            var dimensionId = dimension.Guid;
            var status      = ExternDllHelper.Gdip.GdipImageSelectActiveFrame(new HandleRef(this, NativeImage), ref dimensionId, frameIndex);

            if (status != ExternDllHelper.Gdip.Ok)
            {
                throw ExternDllHelper.Gdip.StatusException(status);
            }

            return(count[0]);
        }
Ejemplo n.º 2
0
        internal int GetFrameCount(GifFrameDimension dimension)
        {
            var count = new[] { 0 };

            var dimensionId = dimension.Guid;
            var status      = ExternDllHelper.Gdip.GdipImageGetFrameCount(new HandleRef(this, NativeImage), ref dimensionId, count);

            if (status != ExternDllHelper.Gdip.Ok)
            {
                throw ExternDllHelper.Gdip.StatusException(status);
            }

            return(count[0]);
        }