Search Results for

    Show / Hide Table of Contents

    PdfWriter.DrawImage Method

    Overloads

    • PdfWriter.DrawImage(TUIImage, TUIRectangle, Stream)
    • PdfWriter.DrawImage(TUIImage, TUIRectangle, Stream, Int64, Boolean)

    PdfWriter.DrawImage(TUIImage, TUIRectangle, Stream)

    Draws an image on the canvas. Image can be any type, but all except jpeg will be converted to PNG.

    Syntax

    Namespace: FlexCel.Pdf

    public void DrawImage(TUIImage image, TUIRectangle rect, Stream imageData)

    Parameters

    <-> Parameter Type Description
    image TUIImage Image to insert. If it is not JPEG or PNG, it will be converted to PNG.
    rect TUIRectangle Rectangle where the image will be.
    imageData Stream Stream with the raw image data. Not required, might be null.

    See also

    • PdfWriter

    PdfWriter.DrawImage(TUIImage, TUIRectangle, Stream, Int64, Boolean)

    Draws an image on the canvas. Image can be any type, but all except jpeg will be converted to PNG.

    Syntax

    Namespace: FlexCel.Pdf

    public void DrawImage(TUIImage image, TUIRectangle rect, Stream imageData, Int64 transparentColor, Boolean defaultToJpg)

    Parameters

    <-> Parameter Type Description
    image TUIImage Image to insert. If it is not JPEG or PNG, it will be converted to PNG.
    rect TUIRectangle Rectangle where the image will be.
    imageData Stream Stream with the raw image data. Not required, might be null.
    transparentColor Int64 Color to make transparent. To specify no transparent color use FlxConsts.NoTransparentColor
    defaultToJpg Boolean When true and the image is not on a supported format (or imageData==null) the image will be converted to JPG. If false, the image will be converted to PNG.

    See also

    • PdfWriter
    In This Article
    Back to top FlexCel Studio for the .NET Framework v7.24.0.0
    © 2002 - 2025 tmssoftware.com