XFINIUM.PDF Documentation
DrawImage(PdfImage,Double,Double,Double,Double) Method



Xfinium.Pdf.Graphics Namespace > PdfGraphics Class > DrawImage Method : DrawImage(PdfImage,Double,Double,Double,Double) Method
PdfImage to draw.
The x-coordinate of the upper-left corner of the drawn image.
The y-coordinate of the upper-left corner of the drawn image.
Width of the drawn image.
Height of the drawn image.
Draws the specified PdfImage at the specified location and with the specified size.
Syntax
'Declaration
 
Public Overloads Function DrawImage( _
   ByVal image As PdfImage, _
   ByVal x As Double, _
   ByVal y As Double, _
   ByVal width As Double, _
   ByVal height As Double _
) As PdfSize
'Usage
 
Dim instance As PdfGraphics
Dim image As PdfImage
Dim x As Double
Dim y As Double
Dim width As Double
Dim height As Double
Dim value As PdfSize
 
value = instance.DrawImage(image, x, y, width, height)

Parameters

image
PdfImage to draw.
x
The x-coordinate of the upper-left corner of the drawn image.
y
The y-coordinate of the upper-left corner of the drawn image.
width
Width of the drawn image.
height
Height of the drawn image.

Return Value

The size of the drawn image.
Remarks
If width is zero or negative then width is automatically computed in order to keep the original aspect ratio. If height is zero or negative then height is automatically computed in order to keep the original aspect ratio. If both width and height are negative then the image is scaled automatically to fit the given area and the original aspect ratio is kept.
Requirements

Supported .NET Platforms: .NET 4.0 and higher, Windows Forms, ASP.NET, Windows Presentation Foundation 4.x, Silverlight 5, WinRT, Universal Windows Platform, Xamarin Mac, iOS & Android, Portable Class Library, .NET Core, .NET Standard


Target Platforms:Windows 10, Windows 8.1, Windows 8 , Windows 7, Windows Vista SP1 or later, Windows Server 2008, Windows Server 2008 R2

See Also

Reference

PdfGraphics Class
PdfGraphics Members
Overload List