|Picture Constructor (DocumentModel, Stream)|
public Picture( DocumentModel document, Stream pictureStream )
Public Sub New ( document As DocumentModel, pictureStream As Stream )
This constructor instantiates Image object (for getting PictureFormat and calculating width and height in points). This approach slightly impairs performance (instantiating Image object requires around 20-50ms for larger images) so, if performance is crucial or you need to insert a lot of images, use constructors that accept PictureFormat argument.