Click or drag to resize
Picture Class
Represents a picture.
Inheritance Hierarchy

Namespace: GemBox.Document
Assembly: GemBox.Document (in GemBox.Document.dll) Version: 25.3.30.1213
Syntax
public sealed class Picture : Shape

The Picture type exposes the following members.

Constructors
  NameDescription
Public methodPicture(DocumentModel, Stream)
Initializes a new instance of the Picture class.
Public methodPicture(DocumentModel, String)
Initializes a new instance of the Picture class.
Public methodPicture(DocumentModel, MemoryStream, PictureFormat, Layout)
Initializes a new instance of the Picture class with specified layout (position and size) and picture's pixel data stream and format.
Public methodPicture(DocumentModel, String, Double, Double)
Initializes a new instance of the Picture class.
Public methodPicture(DocumentModel, MemoryStream, PictureFormat, Layout, ShapeType)
Initializes a new instance of the Picture class with specified layout (position and size), clipping geometry and picture's pixel data stream and format.
Public methodPicture(DocumentModel, MemoryStream, PictureFormat, Double, Double)
Initializes a new instance of the Picture class.
Public methodPicture(DocumentModel, Stream, PictureFormat, Double, Double)
Initializes a new instance of the Picture class.
Public methodPicture(DocumentModel, String, Double, Double, LengthUnit)
Initializes a new instance of the Picture class positioned in-line with specified picture's pixel data file path and picture's size.
Public methodPicture(DocumentModel, MemoryStream, PictureFormat, Double, Double, LengthUnit)
Initializes a new instance of the Picture class positioned in-line with specified picture's pixel data in-memory stream and format and picture's size.
Public methodPicture(DocumentModel, Stream, PictureFormat, Double, Double, LengthUnit)
Initializes a new instance of the Picture class positioned in-line with specified picture's pixel data stream and format and picture's size.
Top
Methods
Properties
  NameDescription
Public propertyAdjustValues
Gets the shape's adjust values.
(Inherited from Shape.)
Public propertyContent
Gets the content of the current Element.
(Inherited from Element.)
Public propertyDocument
Gets the owner document.
(Inherited from Element.)
Public propertyElementType
Gets the element type for Picture which is Picture.
(Overrides ShapeElementType.)
Public propertyFill
Gets the Brush that specifies how the shape's interior is filled.
(Inherited from Shape.)
Public propertyFormat
Gets the image file format.
Public propertyLayout
Gets or sets the DrawingElement layout (position and size).
(Inherited from DrawingElement.)
Public propertyMetadata
Gets the metadata (non-visual properties) of this DrawingElement instance.
(Inherited from DrawingElement.)
Public propertyOutline
Gets the Pen that specifies the shape's outline.
(Inherited from Shape.)
Public propertyParent
Gets the parent of this Element instance.
(Inherited from Element.)
Public propertyParentCollection
Gets the InlineCollection that contains this Inline instance.
(Inherited from Inline.)
Public propertyPictureStream
Gets the stream that contains the image.
Public propertyShapeType
Gets the type of the shape.
(Inherited from Shape.)
Top
Remarks

Picture is a Shape that enables inserting a bitmap, which consists of the pixel data for a graphics image and its attributes, within a document content.

Picture.PictureStream and Picture.Format properties define a Picture and are mandatory in a Picture constructors, directly or indirectly.

Picture can be clipped to a specific shape. Clipping shape type is represented by ShapeType enumeration. It can be set only through Picture(DocumentModel, MemoryStream, PictureFormat, Layout, ShapeType) constructor and retrieved from ShapeType property.

Picture can be filled with a Brush (which will be visible if picture has transparent pixel data) and outlined with a Pen.

Picture can be positioned in-line with the rest of the document content or floating within document content. For more information about picture positioning, see remarks for DrawingElement.Layout property.

For more information, see pictures sample.

See Also