示例#1
0
 /// <summary>
 ///     Set a picture fill. This tiles the picture.
 /// </summary>
 /// <param name="PictureFileName">The file name of the image/picture used.</param>
 /// <param name="OffsetX">
 ///     Horizontal offset ranging from -2147483648 pt to 2147483647 pt. However a suggested range is
 ///     -1585pt to 1584pt. Accurate to 1/12700 of a point.
 /// </param>
 /// <param name="OffsetY">
 ///     Vertical offset ranging from -2147483648 pt to 2147483647 pt. However a suggested range is
 ///     -1585pt to 1584pt. Accurate to 1/12700 of a point.
 /// </param>
 /// <param name="ScaleX">Horizontal scale in percentage. A suggested range is 0% to 100%.</param>
 /// <param name="ScaleY">Vertical scale in percentage. A suggested range is 0% to 100%.</param>
 /// <param name="Alignment">Picture alignment.</param>
 /// <param name="MirrorType">Picture mirror type.</param>
 /// <param name="Transparency">Transparency of the picture ranging from 0% to 100%. Accurate to 1/1000 of a percent.</param>
 public void SetPictureFill(string PictureFileName, decimal OffsetX, decimal OffsetY, decimal ScaleX,
                            decimal ScaleY, A.RectangleAlignmentValues Alignment, A.TileFlipValues MirrorType, decimal Transparency)
 {
     Type             = SLFillType.BlipFill;
     BlipTile         = true;
     BlipFileName     = PictureFileName;
     BlipOffsetX      = OffsetX;
     BlipOffsetY      = OffsetY;
     BlipScaleX       = ScaleX;
     BlipScaleY       = ScaleY;
     BlipAlignment    = Alignment;
     BlipMirrorType   = MirrorType;
     BlipTransparency = Transparency;
 }
示例#2
0
        internal SLGradientFill(List<System.Drawing.Color> ThemeColors)
        {
            int i;
            this.listThemeColors = new List<System.Drawing.Color>();
            for (i = 0; i < ThemeColors.Count; ++i)
            {
                this.listThemeColors.Add(ThemeColors[i]);
            }

            this.IsLinear = true;
            this.Angle = 0;
            this.PathType = A.PathShadeValues.Circle;
            this.Direction = SLGradientDirectionValues.Center;
            this.vFlip = A.TileFlipValues.None;
            this.HasFlip = false;
            this.bRotateWithShape = true;
            this.HasRotateWithShape = false;
            this.GradientStops = new List<SLGradientStop>();
        }
示例#3
0
        internal SLGradientFill(List <Color> ThemeColors)
        {
            int i;

            listThemeColors = new List <Color>();
            for (i = 0; i < ThemeColors.Count; ++i)
            {
                listThemeColors.Add(ThemeColors[i]);
            }

            IsLinear           = true;
            Angle              = 0;
            PathType           = A.PathShadeValues.Circle;
            Direction          = SLGradientDirectionValues.Center;
            vFlip              = A.TileFlipValues.None;
            HasFlip            = false;
            bRotateWithShape   = true;
            HasRotateWithShape = false;
            GradientStops      = new List <SLGradientStop>();
        }
示例#4
0
        internal SLGradientFill(List <System.Drawing.Color> ThemeColors)
        {
            int i;

            this.listThemeColors = new List <System.Drawing.Color>();
            for (i = 0; i < ThemeColors.Count; ++i)
            {
                this.listThemeColors.Add(ThemeColors[i]);
            }

            this.IsLinear           = true;
            this.Angle              = 0;
            this.PathType           = A.PathShadeValues.Circle;
            this.Direction          = SLGradientDirectionValues.Center;
            this.vFlip              = A.TileFlipValues.None;
            this.HasFlip            = false;
            this.bRotateWithShape   = true;
            this.HasRotateWithShape = false;
            this.GradientStops      = new List <SLGradientStop>();
        }