Spread WPF 18
GrapeCity.Spreadsheet.Printing Namespace / PrintingContext Class / DrawImage Method / DrawImage(Stream,Rectangle,SizingMode,Nullable<Rectangle>,RectAlignment) Method
The data stream of image to draw.
GrapeCity.Drawing.Rectangle structure that specifies the location and size of the drawn image.
GrapeCity.CalcEngine.SizingMode structure that specifies the the image dimensions.
GrapeCity.Drawing.Rectangle structure that specifies the clipping rectangle, or null for no clipping.
GrapeCity.Drawing.RectAlignment that specifies how's the image aligned.


In This Topic
    DrawImage(Stream,Rectangle,SizingMode,Nullable<Rectangle>,RectAlignment) Method
    In This Topic
    Draws an image into the region defined by the specified GrapeCity.Drawing.Rectangle.
    Syntax
    'Declaration
     
    Public Overloads MustOverride Sub DrawImage( _
       ByVal imageStream As Stream, _
       ByVal bounds As Rectangle, _
       ByVal sizingMode As SizingMode, _
       Optional ByVal clipBounds As Nullable(Of Rectangle), _
       Optional ByVal rectAlignment As RectAlignment _
    ) 
    'Usage
     
    Dim instance As PrintingContext
    Dim imageStream As Stream
    Dim bounds As Rectangle
    Dim sizingMode As SizingMode
    Dim clipBounds As Nullable(Of Rectangle)
    Dim rectAlignment As RectAlignment
     
    instance.DrawImage(imageStream, bounds, sizingMode, clipBounds, rectAlignment)
    public abstract void DrawImage( 
       Stream imageStream,
       Rectangle bounds,
       SizingMode sizingMode,
       Nullable<Rectangle> clipBounds,
       RectAlignment rectAlignment
    )

    Parameters

    imageStream
    The data stream of image to draw.
    bounds
    GrapeCity.Drawing.Rectangle structure that specifies the location and size of the drawn image.
    sizingMode
    GrapeCity.CalcEngine.SizingMode structure that specifies the the image dimensions.
    clipBounds
    GrapeCity.Drawing.Rectangle structure that specifies the clipping rectangle, or null for no clipping.
    rectAlignment
    GrapeCity.Drawing.RectAlignment that specifies how's the image aligned.
    See Also