Apitron.PDF.Kit library for .NET
Assembly: Apitron.PDF.Kit (in Apitron.PDF.Kit.dll) Version: 2.0.37.0 (2.0.37.0)
Appends an image.
Namespace: Apitron.PDF.Kit.FixedLayout.Content
Assembly: Apitron.PDF.Kit (in Apitron.PDF.Kit.dll) Version: 2.0.37.0 (2.0.37.0)
Syntax
public void AppendImage( string resourceID, double x, double y, double width, double height )
Parameters
- resourceID
- Type: SystemString
The image resource ID. - x
- Type: SystemDouble
The x. - y
- Type: SystemDouble
The y. - width
- Type: SystemDouble
The width. - height
- Type: SystemDouble
The height.
Examples
C#
// register our image as a resource FixedLayout.Resources.XObjects.Image image = new FixedLayout.Resources.XObjects.Image("Image1", "image.png"); document.ResourceManager.RegisterResource(image); // add page Page page = new Page(new PageBoundary(Boundaries.A3)); // append our image page.Content.AppendImage("Image1", 10, 50, image.Width, image.Height); document.Pages.Add(page);
See Also