Page.AddImage

AddImage(Stream, Rectangle)

Adds image onto the page and locates it in the middle of specified rectangle saving image’s proportion.

public void AddImage(Stream imageStream, Rectangle imageRect)
ParameterTypeDescription
imageStreamStreamThe stream of the image.
imageRectRectangleThe position of the image.

See Also


AddImage(string, Stream, Rectangle)

Adds searchable image onto the page and locates it in the middle of specified rectangle saving image’s proportion.

public void AddImage(string hocr, Stream imageStream, Rectangle imageRect)
ParameterTypeDescription
hocrStringThe hocr of the image.
imageStreamStreamThe stream of the image.
imageRectRectangleThe position of the image.

See Also


AddImage(Stream, Rectangle, int, int, bool)

Adds image on page and places it depend on image rectangle position.

public void AddImage(Stream imageStream, Rectangle imageRect, int imageWidth, int imageHeight, 
    bool saveImageProportions)
ParameterTypeDescription
imageStreamStreamThe stream of the image.
imageRectRectangleThe default position of the image on page.
imageWidthInt32The width of the image.
imageHeightInt32The height of the image.
saveImageProportionsBooleanIf the flag set to true than image placed in rectangle position; otherwise, the size of rectange is becoming equal to image size.

See Also


AddImage(string, Rectangle)

Adds image onto the page and locates it in the middle of specified rectangle saving image’s proportion.

public void AddImage(string imagePath, Rectangle rectangle)
ParameterTypeDescription
imagePathStringThe path to image.
rectangleRectangleThe position of the image.

See Also