PrintDocument for WinForms | ComponentOne
C1.PrintDocument.4.5.2 Assembly / C1.C1Preview Namespace / C1PrintDocument Class / RenderDirectImage Method / RenderDirectImage(Unit,Unit,Image,Object,Object,ImageAlign) Method
The horizontal (X) coordinate at which to render the image (cannot be auto).
The vertical (Y) coordinate at which to render the image (cannot be auto).
The image to render.
The width of the image (if null, auto is used).
The height of the image (if null, auto is used).
The image alignment to use.

In This Topic
    RenderDirectImage(Unit,Unit,Image,Object,Object,ImageAlign) Method
    In This Topic
    Adds an System.Drawing.Image to the Body of the current document at a specific position on the current page, and resolves it.
    Syntax
    'Declaration
     
    Public Overloads Sub RenderDirectImage( _
       ByVal x As Unit, _
       ByVal y As Unit, _
       ByVal image As Image, _
       ByVal width As Object, _
       ByVal height As Object, _
       ByVal imageAlign As ImageAlign _
    ) 
    public void RenderDirectImage( 
       Unit x,
       Unit y,
       Image image,
       object width,
       object height,
       ImageAlign imageAlign
    )

    Parameters

    x
    The horizontal (X) coordinate at which to render the image (cannot be auto).
    y
    The vertical (Y) coordinate at which to render the image (cannot be auto).
    image
    The image to render.
    width
    The width of the image (if null, auto is used).
    height
    The height of the image (if null, auto is used).
    imageAlign
    The image alignment to use.
    Remarks

    This method can only be used between calls to StartDoc and EndDoc methods on the current document. For details, see RenderDirect(Unit,Unit,RenderObject,Object,Object).

    See Also