Insert: Images From Files...
Insert image from file into a Graph page or Image window.
Minimum Origin Version Required: 2016 SR0
1. insertImg2g fname:="C:\image\Sample.bmp";
2. insertImg2g fname:="C:\image\Sample.bmp" ipg:=Graph1;
3. insertImg2g fname:="C:\image\Sample.bmp" type:=img xyp:=2;
Please refer to the page for additional option switches when accessing the x-function from script
Display Name |
Variable Name |
I/O and Type |
Default Value |
Description |
---|---|---|---|---|
File Name | fname |
Input string |
|
Filename of the image file to be imported. |
Input Page | ipg |
Input Page |
|
If you want to import the image into a graph page or a layout page, use this variable to specify the target page. |
Object Type | type |
Input int |
|
Use this variable to specify the inserted object type.
|
Left | x |
Input int |
|
x coordinate of top left corner in percentage of page width. |
Top | y |
Input int |
|
y coordinate of top left corner in percentage of page height. |
Coordinate Mode | xyp |
Input int |
|
Option list:
|
Object Name | oname |
Output string |
|
Name of string variable to receive the name of the new graph object. |
This X-Function can be used to insert an image file outside of Origin in a Graph page or a layout page.
cd, impinfo, findFiles, impFile
Keywords:import