Click or drag to resize
Picture Constructor (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.

Namespace:  GemBox.Document
Assembly:  GemBox.Document (in GemBox.Document.dll) Version: 25.3.30.1255
Syntax
public Picture(
	DocumentModel document,
	MemoryStream pictureStream,
	PictureFormat format,
	Layout layout,
	ShapeType shapeType
)

Parameters

document
Type: GemBox.DocumentDocumentModel
The owner document.
pictureStream
Type: System.IOMemoryStream
The picture pixel data stream.
format
Type: GemBox.DocumentPictureFormat
The picture stream format.
layout
Type: GemBox.DocumentLayout
The picture layout (position and size).
shapeType
Type: GemBox.Document.DrawingShapeType
The picture's shape type into which picture will be clipped.
Exceptions
ExceptionCondition
ArgumentNullExceptionpictureStream is .
ArgumentNullExceptionlayout is .
See Also