SharpLeaf Reference > ImageBlock : PageElement Class > ImageBlock Constructor > (String,String,Double,Double,Double,Double,Boolean)

ImageBlock Constructor (String,String,Double,Double,Double,Double,Boolean)

Create a new picture from the filename, possibly scaling and stretching it.

public ImageBlock(
    string filename,
    string url,
    double xfrom,
    double yfrom,
    double width,
    double height,
    bool stretch
);
filename
File name to use for embedding at report creation time (Raster format and PS and PDF).
url
URL to point at display time to for web formats (SVG and XAML).
xfrom
Point where to draw image (positive : from paper top left corner, negative : from paper right bottom corner).
yfrom
Point where to draw image (positive : from paper top left corner, negative : from paper right bottom corner).
width
Size of image (0 for default – direction determined by signum of xfrom/yfrom), positive size towards right/bott.

See also ...

ImageBlock.Members | ImageBlock.ImageBlock Constructor


Send comments on this topic
© Dyalog Ltd 2021