ComponentOne PDF for .NET
C1.C1Pdf Namespace / C1PdfDocument Class / DrawImage Method / DrawImage(Image,RectangleF) 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.

In This Topic
    DrawImage(Image,RectangleF) Method
    In This Topic
    Draws the specified System.Drawing.Image object at the specified location, stretching it to fit the destination rectangle.
    Syntax
    'Declaration
     
    
    Public Overloads Sub DrawImage( _
       ByVal img As Image, _
       ByVal rc As RectangleF _
    ) 
    public void DrawImage( 
       Image img,
       RectangleF rc
    )

    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.
    Remarks
    The DrawImage method can be used to render bitmaps and metafiles. When used with metafiles, it enumerates the drawing commands in the metafile and translates them into low-level drawing primitives. This results in resolution-independent images.
    See Also