• DR-IT Software
  • Products
  • Documentation
  • Product page
  • Examples
  • API reference
  • Support
Show / Hide Table of Contents

Class PictureShape

Represents the picture shape used by the presentation model.

Inheritance
object
AbstractShape
PictureShape
Implements
IDrawingObject
Inherited Members
AbstractShape.IsEffective
AbstractShape.Id
AbstractShape.Name
AbstractShape.Size
AbstractShape.ParentGroup
AbstractShape.GetGeometryPaths()
AbstractShape.AnchorPosition
AbstractShape.RelativePosition
AbstractShape.Position
AbstractShape.ShapeType
AbstractShape.FlipH
AbstractShape.FlipV
AbstractShape.PrintObject
AbstractShape.Locked
AbstractShape.Locks
AbstractShape.EnableLocks()
AbstractShape.Hidden
AbstractShape.IsCameo
AbstractShape.IsMathShape
AbstractShape.ZOrderPosition
AbstractShape.PlaceholderType
AbstractShape.Placeholder
AbstractShape.LockText
AbstractShape.AlternateText
AbstractShape.Tags
AbstractShape.Fill
AbstractShape.Line
AbstractShape.Effects
AbstractShape.HyperLink
AbstractShape.Action
AbstractShape.OleObject
AbstractShape.MediaObject
AbstractShape.SmartArt
AbstractShape.IsSmartArt
AbstractShape.BinaryExternalObject
AbstractShape.BinaryPreservedFragments
AbstractShape.RotationAngle
AbstractShape.WithAdjustments(params long[])
AbstractShape.Adjustments
AbstractShape.PolygonPoints
object.ToString()
object.Equals(object)
object.Equals(object, object)
object.ReferenceEquals(object, object)
object.GetHashCode()
object.GetType()
object.MemberwiseClone()
Namespace: DRIT.Presentation.Drawing
Assembly: DRIT.Presentation.dll
Syntax
public class PictureShape : AbstractShape, IDrawingObject

Constructors

PictureShape()

Initializes a new instance of the picture shape class.

Declaration
public PictureShape()

Properties

Description

Gets or sets the description of the picture.

Declaration
public string Description { get; set; }
Property Value
Type Description
string

Formula

Gets or sets the formula text.

Declaration
public string Formula { get; set; }
Property Value
Type Description
string

LockAspectRatio

Gets or sets whether the picture retains its original proportions when you resize it.

Declaration
public bool LockAspectRatio { get; set; }
Property Value
Type Description
bool

Picture

Gets or sets the picture associated with this object.

Declaration
public Picture Picture { get; }
Property Value
Type Description
Picture

Title

Gets or sets the title of the picture.

Declaration
public string Title { get; set; }
Property Value
Type Description
string

Methods

SaveImage(string, ImageFormat, int)

Saves the embedded picture to a file in the specified image format.

Declaration
public void SaveImage(string path, ImageFormat format, int quality = 100)
Parameters
Type Name Description
string path

The output image path.

ImageFormat format

The output image format.

int quality

The JPEG quality from 0 to 100.

SetImage(string)

Sets the picture content from an image file and registers the bytes with the owning presentation's media cache.

Declaration
public override AbstractShape SetImage(string path)
Parameters
Type Name Description
string path
Returns
Type Description
AbstractShape
Overrides
AbstractShape.SetImage(string)

SetSvgImage(string)

Sets the picture content from SVG markup and registers it with the owning presentation's media cache.

Declaration
public PictureShape SetSvgImage(string svgContent)
Parameters
Type Name Description
string svgContent

The SVG document markup.

Returns
Type Description
PictureShape

SetSvgImage(string, string)

Sets the picture content from SVG markup, resolving local external image references relative to baseDirectory before embedding it.

Declaration
public PictureShape SetSvgImage(string svgContent, string baseDirectory)
Parameters
Type Name Description
string svgContent

The SVG document markup.

string baseDirectory

The directory used to resolve relative resource paths.

Returns
Type Description
PictureShape

Implements

IDrawingObject
Back to top

DR-IT Software documentation

DR-IT Software · Products · Documentation index · Product page · Downloads · Support · Licensing

Generated by DocFX