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

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

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).
Exceptions
ExceptionCondition
ArgumentNullExceptionpictureStream is .
ArgumentNullExceptionlayout is .
See Also