Ejemplo n.º 1
0
        internal Layer(GaleObject galeObject, int frameIndex, int layerIndex)
        {
            this.galeObject = galeObject;

            this.frameIndex = frameIndex;
            this.layerIndex = layerIndex;

            Name = gg.GetLayerName(galeObject.Handle, frameIndex, layerIndex);

            Visible             = gg.IsLayerVisible(galeObject.Handle, frameIndex, layerIndex);
            AlphaChannelEnabled = gg.IsAlphaChannelEnabled(galeObject.Handle, frameIndex, layerIndex);

            TransparentColor = gg.GetLayerTransparentColor(galeObject.Handle, frameIndex, layerIndex);
            Opacity          = gg.GetLayerOpacityLevel(galeObject.Handle, frameIndex, layerIndex);
        }
Ejemplo n.º 2
0
        internal Frame(GaleObject galeObject, int frameIndex)
        {
            this.galeObject = galeObject;
            this.frameIndex = frameIndex;

            InternalName = gg.GetFrameName(galeObject.Handle, frameIndex);

            Name = InternalName
                   .Replace("%framenumber%", (frameIndex + 1).ToString())
                   .Replace("%framenumber_zero%", (frameIndex + 1).ToString(galeObject._ZeroDigitFormat))
                   .Replace("%frameindex%", frameIndex.ToString())
                   .Replace("%frameindex_zero%", frameIndex.ToString(galeObject._ZeroDigitFormat));



            TransparentColor = gg.GetFrameTransparentColor(galeObject.Handle, this.frameIndex);
            DisposalType     = gg.GetFrameDisposalType(galeObject.Handle, this.frameIndex);
            Delay            = gg.GetFrameDelay(galeObject.Handle, this.frameIndex);

            LayerCount = gg.GetLayerCount(galeObject.Handle, frameIndex);
        }