Click or drag to resize
Pdf Library for .NET

PdfImageElement(Single, Single, Single, Stream) Constructor

Creates an image element at (x, y) from a stream with the specified destination width. Height preserves aspect ratio.

Namespace: SelectPdf.Universal
Assembly: SelectPdf.Universal (in SelectPdf.Universal.dll) Version: 26.4
Syntax
public PdfImageElement(
	float x,
	float y,
	float width,
	Stream imageStream
)

Parameters

x  Single
The X coordinate, in client-area coordinates.
y  Single
The Y coordinate, in client-area coordinates.
width  Single
The destination width in points.
imageStream  Stream
Stream containing the image bytes.
See Also