ComponentOne PDF for .NET
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.

In This Topic
    DrawImage(Image,RectangleF,ContentAlignment,ImageSizeModeEnum) Method
    In This Topic
    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 Image, _
       ByVal rc As RectangleF, _
       ByVal align As ContentAlignment, _
       ByVal mode As ImageSizeModeEnum _
    ) 

    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