SharpLeaf Reference > SharpLeaf Methods > IncludeImage Method SharpLeaf.IncludeImage Method
Add a picture to a report, with optional scaling and wraparound.
The horizontal spacing around the included image is controlled by ParagraphStyle.HorizontalGap.
Overloads
- public void IncludeImage(Image bmp,string uri);
- public void IncludeImage(Image bmp,string uri,BoxFlow flow);
- public void IncludeImage(Image bmp,string uri,BoxFlow flow,double width);
- public void IncludeImage(Image bmp,string uri,BoxFlow flow,double width,double height);
- public void IncludeImage(Image bmp,string uri,BoxFlow flow,double width,double height,bool stretch);
- public void IncludeImage(string filename,string uri);
- public void IncludeImage(string filename,string uri,BoxFlow flow);
- public void IncludeImage(string filename,string uri,BoxFlow flow,double width);
- public void IncludeImage(string filename,string uri,BoxFlow flow,double width,double height);
- public void IncludeImage(string filename,string uri,BoxFlow flow,double width,double height,bool stretch);
Example
// Take a quarter of the frame width on the right, and flow text on the left
lf.IncludeImage("dyalog.jpg","dyalog.jpg",BoxFlow.Right,-0.25);
See also ...ImageBlock : PageElement Class | Text Inclusions | SharpLeaf Members | ParagraphStyle.HorizontalGap Property
Send comments on this topic © Dyalog Ltd 2021
|