Ejemplo n.º 1
0
 public void TestFrameEffect()
 {
     Microsoft.Office.Interop.PowerPoint.Shape shape = _designer.ApplyAlbumFrameEffect("#000000", 35);
     Assert.IsTrue(shape.Name.StartsWith(
                       EffectsDesigner.ShapeNamePrefix + "_" + EffectName.Overlay));
     Assert.AreEqual(MsoShapeType.msoAutoShape, shape.Type);
 }
Ejemplo n.º 2
0
        public void TestFrameEffect()
        {
            var shape = _designer.ApplyAlbumFrameEffect("#000000", 35);

            Assert.IsTrue(shape.Name.StartsWith(
                              EffectsDesigner.ShapeNamePrefix + "_" + EffectName.Overlay));
            Assert.AreEqual(MsoShapeType.msoAutoShape, shape.Type);
        }
 public IList<Shape> Execute(StyleOption option, EffectsDesigner designer, ImageItem source, Shape imageShape, Settings settings)
 {
     var result = new List<Shape>();
     if (option.IsUseFrameStyle)
     {
         var frameOverlayShape = designer.ApplyAlbumFrameEffect(option.FrameColor, option.FrameTransparency);
         result.Add(frameOverlayShape);
     }
     return result;
 }
Ejemplo n.º 4
0
        public IList <Shape> Execute(StyleOption option, EffectsDesigner designer, ImageItem source, Shape imageShape, Settings settings)
        {
            List <Shape> result = new List <Shape>();

            if (option.IsUseFrameStyle)
            {
                Shape frameOverlayShape = designer.ApplyAlbumFrameEffect(option.FrameColor, option.FrameTransparency);
                result.Add(frameOverlayShape);
            }
            return(result);
        }