Click or drag to resize
SignDocDocumentaddImageFromBlob Method
Add an image (from a blob) to a page.

Namespace:  de.softpro.signdocsdk
Assembly:  SPSignDoc_4.3_DotNetLib (in SPSignDoc_4.3_DotNetLib.dll) Version: 1.0.6773.37566
Syntax
C#
public void addImageFromBlob(
	int targetPage,
	byte[] data,
	double zoom,
	double x,
	double y,
	double width,
	double height,
	ImportImageFlag flags
)

Parameters

targetPage
Type: SystemInt32
The 1-based number of the page.
data
Type: SystemByte
The blob containing the image. Supported formats for inserting into PDF documents are: JPEG, PNG, GIF, TIFF, and BMP.
zoom
Type: SystemDouble
Zoom factor or zero. If this argument is non-zero, @a aWidth and @a aHeight must be zero. The size of the page is computed from the image size and resolution, multiplied by @a aZoom.
x
Type: SystemDouble
The X coordinate of the point at which the lower left corner of the image shall be placed.
y
Type: SystemDouble
The Y coordinate of the point at which the lower left corner of the image shall be placed.
width
Type: SystemDouble
Image width (document coordinates) or zero. If this argument is non-zero, @a aHeight must also be non-zero and @a aZoom must be zero. The image will be scaled to this width.
height
Type: SystemDouble
Page height (document coordinates) or zero. If this argument is non-zero, @a aWidth must also be non-zero and @a aZoom must be zero. The image will be scaled to this height.
flags
Type: de.softpro.signdocsdk.Enums.EDocumentImportImageFlag
Flags modifying the behavior of this function, See #ii_keep_aspect_ratio. ii_keep_aspect_ratio is not needed if @a aZoom is non-zero.
See Also