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

Namespace:  GemBox.Document
Assembly:  GemBox.Document (in GemBox.Document.dll) Version: 25.3.30.1255
Syntax
public Picture(
	DocumentModel document,
	Stream pictureStream,
	PictureFormat format,
	double width,
	double height,
	LengthUnit unit
)

Parameters

document
Type: GemBox.DocumentDocumentModel
The owner document.
pictureStream
Type: System.IOStream
The picture pixel data stream.
format
Type: GemBox.DocumentPictureFormat
The picture stream format.
width
Type: SystemDouble
The picture width in units specified by unit parameter.
height
Type: SystemDouble
The picture height in units specified by unit parameter.
unit
Type: GemBox.DocumentLengthUnit
The measurement unit for width and height.
Exceptions
ExceptionCondition
ArgumentNullExceptionpictureStream is .
See Also