InsertPicture- Inserts an image into the graph
Inserts an image into the existing graph.
- InsertPicture(FN,X,Y[,W,H])
Parameters:
- (string) FN: name of the file;
- (int) X: horizontal insertion coordinate;
- (int) Y: vertical insertion coordinate;
- (int) W: width of image (optional);
- (int) H: height of image (optional).
Description:
Use InsertPicture to insert the specified image into the existing graph. The FN file name can have an absolute or relative path. A relative path is always related to the position of the graph. The X Y coordinates define the point at which the image is inserted into the graph. The W H parameters redefine the image size. If omitted, the image assumes its original size. If only one value is specified, placing the other at Null, the null value will assume an appropriate value to maintain the aspect ratio of the image. If both values are specified, the image will assume the specified size, to the detriment of its original aspect ratio.
- Examples:
// I insert an image in position 50,70 keeping its origin size
InsertPicture ("image.jpg",50,70)
// Inserts an image in the point 50,70 modifying it in width (the height will adapt automatically)
InsertPicture("image.jpg",50,70,400,null)
// Inserts an image in the point 50,70 modifying it in height (the width will adapt automatically)
InsertPicture ("image.jpg",50,70,null,150)
// Inserts an image in point 50,70 changing its size
InsertPicture ("image.jpg",50,70,400,150)