SharpLeaf Reference > ImageBlock : PageElement Class > ImageBlock Constructor ImageBlock Constructor
Create a new picture from the filename, possibly scaling and stretching it.
Overloads
- public ImageBlock(string filename, string url, double xfrom, double yfrom);
- public ImageBlock(string filename, string url, double xfrom, double yfrom, double width, double height);
- public ImageBlock(string filename,string url,double xfrom,double yfrom,double width,double height,bool stretch);
Example
// Include image a real size, one inch from bottom-right paper corner
image = new ImageBlock("C:\\img\\dyalog.jpg","http://mysite.com/img/dyalog.jpg",-72,-72);
page.Add(image);
See also ...ImageBlock.Members
Send comments on this topic © Dyalog Ltd 2021
|