ComponentOne PDF for .NET
DrawImage(Image,RectangleF,ContentAlignment,ImageSizeModeEnum) Method

C1.C1Pdf.4 Assembly > C1.C1Pdf Namespace > C1PdfDocument Class > DrawImage Method : DrawImage(Image,RectangleF,ContentAlignment,ImageSizeModeEnum) Method
System.Drawing.Image object to draw.
System.Drawing.RectangleF structure that specifies the location of the drawn image, in points from the top left corner of the page.
System.Drawing.ContentAlignment value that specifies how the image should be aligned within the rectangle.
ImageSizeModeEnum value that specifies how the image should be sized to fit the rectangle.
Draws the specified System.Drawing.Image object at the specified location, adjusting the image size as specified by the align and mode parameters.
Syntax
'Declaration
 
Public Overloads Sub DrawImage( _
   ByVal img As System.Drawing.Image, _
   ByVal rc As System.Drawing.RectangleF, _
   ByVal align As System.Drawing.ContentAlignment, _
   ByVal mode As ImageSizeModeEnum _
) 
public void DrawImage( 
   System.Drawing.Image img,
   System.Drawing.RectangleF rc,
   System.Drawing.ContentAlignment align,
   ImageSizeModeEnum mode
)

Parameters

img
System.Drawing.Image object to draw.
rc
System.Drawing.RectangleF structure that specifies the location of the drawn image, in points from the top left corner of the page.
align
System.Drawing.ContentAlignment value that specifies how the image should be aligned within the rectangle.
mode
ImageSizeModeEnum value that specifies how the image should be sized to fit the rectangle.
See Also

Reference

C1PdfDocument Class
C1PdfDocument Members
Overload List