Пример #1
0
        /// <summary>
        /// Generate a clone that is widened by the <paramref name="geometry"/>.
        /// </summary>
        /// <returns>
        /// A cloned instance that is widened by the given <paramref name="geometry"/>.
        /// </returns>
        /// <param name='geometry'>
        /// The given <see cref="IStripGeometry"/> of the frames.
        /// </param>
        public ICanvasSize StripSequenceClone(IStripGeometry geometry)
        {
            ICanvasSize cs = this.CanvasSize.StripSequenceClone(geometry);

            this.CanvasSize = cs;
            return(cs);
        }
Пример #2
0
        /// <summary>
        /// Widen the <see cref="ICanvasSize"/> such that the geometry of frames specified by <paramref name="geometry"/> is contained.
        /// </summary>
        /// <param name='geometry'>
        /// The given <see cref="IStripGeometry"/> of the frames.
        /// </param>
        public void StripSequence(IStripGeometry geometry)
        {
            int    w      = geometry.Width;
            double margin = this.Margin;

            this.Width = this.Width * w + margin * (w - 0x01);
            int h = geometry.Height;

            this.Height = this.Height * h + margin * (h - 0x01);
        }
Пример #3
0
 /// <summary>
 /// Widen the <see cref="ICanvasSize"/> such that the geometry of frames specified by <paramref name="geometry"/> is contained.
 /// </summary>
 /// <param name='geometry'>
 /// The given <see cref="IStripGeometry"/> of the frames.
 /// </param>
 public void StripSequence(IStripGeometry geometry)
 {
     this.CanvasSize.StripSequence(geometry);
 }
Пример #4
0
 /// <summary>
 /// Initializes a new instance of the <see cref="StripCanvasSize"/> class with a given <see cref="ICanvasSize"/>, <see cref="IStripGeometry"/> and the number of frames involved.
 /// </summary>
 /// <param name='canvasSize'>
 /// An <see cref="ICanvasSize"/> instance describing the size of a single frame.
 /// </param>
 /// <param name='geometry'>
 /// An <see cref="IStripGeometry"/> that describes how the frames are organized.
 /// </param>
 /// <param name='size'>
 /// The number of frames involved.
 /// </param>
 public StripCanvasSize(ICanvasSize canvasSize, IStripGeometry geometry, int size) : this(canvasSize, geometry.CollapseClone(size))
 {
 }
Пример #5
0
 /// <summary>
 /// Initializes a new instance of the <see cref="StripCanvasSize"/> class with a given a given <see cref="ICanvasSize"/> and <see cref="IStripGeometry"/>.
 /// </summary>
 /// <param name='canvasSize'>
 /// An <see cref="ICanvasSize"/> instance describing the size of a single frame.
 /// </param>
 /// <param name='geometry'>
 /// An <see cref="IStripGeometry"/> instance that describes how the frames are organized.
 /// </param>
 public StripCanvasSize(ICanvasSize canvasSize, IStripGeometry geometry)
 {
     this.CanvasSize    = canvasSize;
     this.StripGeometry = geometry;
 }