Search Results for

    Show / Hide Table of Contents

    TPdfWriter.DrawImage Method

    Overloads

    • TPdfWriter.DrawImage(TUIImage, TUIRectangle, TStream)
    • TPdfWriter.DrawImage(TUIImage, TUIRectangle, TStream, Int64, Boolean)

    TPdfWriter.DrawImage(TUIImage, TUIRectangle, TStream)

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

    Syntax

    Unit: FlexCel.Pdf

    procedure TPdfWriter.DrawImage(const image: TUIImage; const rect: TUIRectangle; const imageData: TStream); overload;

    Parameters

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

    See also

    • TPdfWriter

    TPdfWriter.DrawImage(TUIImage, TUIRectangle, TStream, Int64, Boolean)

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

    Syntax

    Unit: FlexCel.Pdf

    procedure TPdfWriter.DrawImage(const image: TUIImage; const rect: TUIRectangle; const imageData: TStream; const transparentColor: Int64; const defaultToJpg: Boolean); overload;

    Parameters

    <-> Parameter Type Description
    const image TUIImage Image to insert. If it is not JPEG or PNG, it will be converted to PNG.
    const rect TUIRectangle Rectangle where the image will be.
    const imageData TStream Stream with the raw image data. Not required, might be null.
    const transparentColor Int64 Color to make transparent. To specify no transparent color use TFlxConsts.NoTransparentColor
    const 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

    • TPdfWriter
    In This Article
    Back to top FlexCel Studio for VCL and FireMonkey v7.24
    © 2002 - 2025 tmssoftware.com