Exemplo n.º 1
0
 /// <summary>
 ///     Remove the bottom bevel.
 /// </summary>
 public void SetNoBevelBottom()
 {
     vBevelBottomPreset   = A.BevelPresetValues.Circle;
     decBevelBottomWidth  = 6;
     decBevelBottomHeight = 6;
     HasBevelBottom       = false;
 }
Exemplo n.º 2
0
 /// <summary>
 ///     Remove the top bevel.
 /// </summary>
 public void SetNoBevelTop()
 {
     vBevelTopPreset   = A.BevelPresetValues.Circle;
     decBevelTopWidth  = 6;
     decBevelTopHeight = 6;
     HasBevelTop       = false;
 }
Exemplo n.º 3
0
 /// <summary>
 ///     Set the bottom bevel.
 /// </summary>
 /// <param name="BevelPreset">The bevel type.</param>
 /// <param name="Width">
 ///     Bevel width ranging from 0 pt to 2147483647 pt. However, a suggested maximum is 1584 pt. Accurate
 ///     to 1/12700 of a point.
 /// </param>
 /// <param name="Height">
 ///     Bevel height ranging from 0 pt to 2147483647 pt. However, a suggested maximum is 1584 pt. Accurate
 ///     to 1/12700 of a point.
 /// </param>
 public void SetBevelBottom(A.BevelPresetValues BevelPreset, decimal Width, decimal Height)
 {
     vBevelBottomPreset = BevelPreset;
     BevelBottomWidth   = Width;
     BevelBottomHeight  = Height;
     HasBevelBottom     = true;
 }
Exemplo n.º 4
0
 /// <summary>
 ///     Set the top bevel.
 /// </summary>
 /// <param name="BevelPreset">The bevel type.</param>
 /// <param name="Width">
 ///     Bevel width ranging from 0 pt to 2147483647 pt. However, a suggested maximum is 1584 pt. Accurate
 ///     to 1/12700 of a point.
 /// </param>
 /// <param name="Height">
 ///     Bevel height ranging from 0 pt to 2147483647 pt. However, a suggested maximum is 1584 pt. Accurate
 ///     to 1/12700 of a point.
 /// </param>
 public void SetBevelTop(A.BevelPresetValues BevelPreset, decimal Width, decimal Height)
 {
     vBevelTopPreset = BevelPreset;
     BevelTopWidth   = Width;
     BevelTopHeight  = Height;
     HasBevelTop     = true;
 }
Exemplo n.º 5
0
 /// <summary>
 /// Remove the bottom bevel.
 /// </summary>
 public void SetNoBevelBottom()
 {
     this.vBevelBottomPreset   = A.BevelPresetValues.Circle;
     this.decBevelBottomWidth  = 6;
     this.decBevelBottomHeight = 6;
     this.bHasBevelBottom      = false;
 }
Exemplo n.º 6
0
 /// <summary>
 /// Remove the top bevel.
 /// </summary>
 public void SetNoBevelTop()
 {
     this.vBevelTopPreset   = A.BevelPresetValues.Circle;
     this.decBevelTopWidth  = 6;
     this.decBevelTopHeight = 6;
     this.bHasBevelTop      = false;
 }
Exemplo n.º 7
0
 /// <summary>
 /// Remove the top bevel.
 /// </summary>
 public void SetNoBevelTop()
 {
     this.vBevelTopPreset = A.BevelPresetValues.Circle;
     this.decBevelTopWidth = 6;
     this.decBevelTopHeight = 6;
     this.bHasBevelTop = false;
 }
Exemplo n.º 8
0
 /// <summary>
 /// Remove the bottom bevel.
 /// </summary>
 public void SetNoBevelBottom()
 {
     this.vBevelBottomPreset = A.BevelPresetValues.Circle;
     this.decBevelBottomWidth = 6;
     this.decBevelBottomHeight = 6;
     this.bHasBevelBottom = false;
 }
Exemplo n.º 9
0
 /// <summary>
 /// Set the top bevel.
 /// </summary>
 /// <param name="BevelPreset">The bevel type.</param>
 /// <param name="Width">Bevel width ranging from 0 pt to 2147483647 pt. However, a suggested maximum is 1584 pt. Accurate to 1/12700 of a point.</param>
 /// <param name="Height">Bevel height ranging from 0 pt to 2147483647 pt. However, a suggested maximum is 1584 pt. Accurate to 1/12700 of a point.</param>
 public void SetBevelTop(A.BevelPresetValues BevelPreset, decimal Width, decimal Height)
 {
     this.vBevelTopPreset = BevelPreset;
     this.BevelTopWidth = Width;
     this.BevelTopHeight = Height;
     this.bHasBevelTop = true;
 }
Exemplo n.º 10
0
 /// <summary>
 /// Set the bottom bevel.
 /// </summary>
 /// <param name="BevelPreset">The bevel type.</param>
 /// <param name="Width">Bevel width ranging from 0 pt to 2147483647 pt. However, a suggested maximum is 1584 pt. Accurate to 1/12700 of a point.</param>
 /// <param name="Height">Bevel height ranging from 0 pt to 2147483647 pt. However, a suggested maximum is 1584 pt. Accurate to 1/12700 of a point.</param>
 public void SetBevelBottom(A.BevelPresetValues BevelPreset, decimal Width, decimal Height)
 {
     this.vBevelBottomPreset = BevelPreset;
     this.BevelBottomWidth = Width;
     this.BevelBottomHeight = Height;
     this.bHasBevelBottom = true;
 }
Exemplo n.º 11
0
        private void InitialisePicture()
        {
            // should be true once we get *everyone* to stop using those confoundedly
            // hard to understand EMUs and absolute positionings...
            UseEasyPositioning = false;
            TopPosition = 0;
            LeftPosition = 0;

            UseRelativePositioning = true;
            AnchorRowIndex = 1;
            AnchorColumnIndex = 1;
            OffsetX = 0;
            OffsetY = 0;
            WidthInEMU = 0;
            HeightInEMU = 0;
            WidthInPixels = 0;
            HeightInPixels = 0;
            fHorizontalResolutionRatio = 1;
            fVerticalResolutionRatio = 1;

            this.bLockWithSheet = true;
            this.bPrintWithSheet = true;
            this.vCompressionState = A.BlipCompressionValues.Print;
            this.decBrightness = 0;
            this.decContrast = 0;
            //this.decRotationAngle = 0;

            this.vPictureShape = A.ShapeTypeValues.Rectangle;

            this.FillType = SLPictureFillType.None;
            this.FillClassInnerXml = string.Empty;

            this.HasOutline = false;
            this.PictureOutline = new A.Outline();
            this.HasOutlineFill = false;
            this.PictureOutlineFill = new A.SolidFill();

            this.HasGlow = false;
            this.GlowRadius = 0;
            this.GlowColorInnerXml = string.Empty;

            this.HasInnerShadow = false;
            this.PictureInnerShadow = new A.InnerShadow();
            this.HasOuterShadow = false;
            this.PictureOuterShadow = new A.OuterShadow();

            this.HasReflection = false;
            this.ReflectionBlurRadius = 0;
            this.ReflectionStartOpacity = 100000;
            this.ReflectionStartPosition = 0;
            this.ReflectionEndAlpha = 0;
            this.ReflectionEndPosition = 100000;
            this.ReflectionDistance = 0;
            this.ReflectionDirection = 0;
            this.ReflectionFadeDirection = 5400000;
            this.ReflectionHorizontalRatio = 100000;
            this.ReflectionVerticalRatio = 100000;
            this.ReflectionHorizontalSkew = 0;
            this.ReflectionVerticalSkew = 0;
            this.ReflectionAlignment = A.RectangleAlignmentValues.Bottom;
            this.ReflectionRotateWithShape = true;

            this.HasSoftEdge = false;
            this.SoftEdgeRadius = 0;

            this.HasScene3D = false;

            this.CameraLatitude = 0;
            this.CameraLongitude = 0;
            this.CameraRevolution = 0;
            this.CameraPreset = A.PresetCameraValues.OrthographicFront;
            this.CameraFieldOfView = 0;
            this.CameraZoom = 0;

            this.LightRigLatitude = 0;
            this.LightRigLongitude = 0;
            this.LightRigRevolution = 0;
            this.LightRigType = A.LightRigValues.ThreePoints;
            this.LightRigDirection = A.LightRigDirectionValues.Top;

            //this.HasBackdrop = false;
            //this.BackdropAnchorX = 0;
            //this.BackdropAnchorY = 0;
            //this.BackdropAnchorZ = 0;
            //this.BackdropNormalDx = 0;
            //this.BackdropNormalDy = 0;
            //this.BackdropNormalDz = 0;
            //this.BackdropUpVectorDx = 0;
            //this.BackdropUpVectorDy = 0;
            //this.BackdropUpVectorDz = 0;

            this.HasBevelTop = false;
            this.BevelTopPreset = A.BevelPresetValues.Circle;
            this.BevelTopWidth = 76200;
            this.BevelTopHeight = 76200;

            this.HasBevelBottom = false;
            this.BevelBottomPreset = A.BevelPresetValues.Circle;
            this.BevelBottomWidth = 76200;
            this.BevelBottomHeight = 76200;

            this.HasExtrusion = false;
            this.ExtrusionHeight = 0;
            this.ExtrusionColorInnerXml = string.Empty;

            this.HasContour = false;
            this.ContourWidth = 0;
            this.ContourColorInnerXml = string.Empty;

            this.HasMaterialType = false;
            this.MaterialType = A.PresetMaterialTypeValues.WarmMatte;

            this.HasZDistance = false;
            this.ZDistance = 0;

            this.HasUri = false;
            this.HyperlinkUri = string.Empty;
            this.HyperlinkUriKind = UriKind.Absolute;
            this.IsHyperlinkExternal = true;

            this.DataIsInFile = true;
            this.PictureFileName = string.Empty;
            this.PictureByteData = new byte[1];
            this.PictureImagePartType = ImagePartType.Bmp;
        }
Exemplo n.º 12
0
 /// <summary>
 /// Set a bevelled bottom.
 /// </summary>
 /// <param name="BevelPreset">The bevel type. Default value is circle.</param>
 /// <param name="Width">Width of the bevel, ranging from 0 pt to 2147483647 pt (but consider a maximum of 1584 pt). Accurate to 1/12700 of a point. Default value is 6 pt.</param>
 /// <param name="Height">Height of the bevel, ranging from 0 pt to 2147483647 pt (but consider a maximum of 1584 pt). Accurate to 1/12700 of a point. Default value is 6 pt.</param>
 public void Set3DBevelBottom(A.BevelPresetValues BevelPreset, decimal Width, decimal Height)
 {
     this.HasBevelBottom = true;
     this.BevelBottomPreset = BevelPreset;
     this.BevelBottomWidth = SLDrawingTool.CalculatePositiveCoordinate(Width);
     this.BevelBottomHeight = SLDrawingTool.CalculatePositiveCoordinate(Height);
 }