The Origin Forum
File Exchange
Try Origin for Free
The Origin Forum
Home | Profile | Register | Active Topics | Members | Search | FAQ | Send File to Tech support
Username:
Password:
Save Password
Forgot your Password? | Admin Options

 All Forums
 Origin Forum for Programming
 LabTalk Forum
 Size of imported image in graph
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic Lock Topic Edit Topic Delete Topic New Topic Reply to Topic

RobHerre

Germany
2 Posts

Posted - 02/04/2013 :  08:12:28 AM  Show Profile  Edit Topic  Reply with Quote  View user's IP address  Delete Topic
Origin Ver. and Service Release (Select Help-->About Origin):
8.6G 32 bit
Operating System: Win7

Hi everybody,

I'd like to import an image as a kind of watermark in a graph I build with LabTalk.
I use the following code:
insertImg2g fname:="myimage.jpg" x:=5200 y:=100

How can I resize this image to a specific height or weight? The imported image is too big. Can I also import .eps files instead of this .jpg-File?
When I use:
imgResize lock:=1 unit:=pixel h:=300 interpolate:=normal;

I get a warning message
quote:
Unattached wrapper class members
and the image disappear.
Can anyone help me please?

Thanks, Rob

greg

USA
1378 Posts

Posted - 02/05/2013 :  4:37:00 PM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
You cannot import EPS images.

The imgResize X-Function is for a Matrix Image object.

To change the image size, you must know the object name and use its properties. By default, the first such image is named BMP so something like this may work:

dlgfile gr:=Image;
insertImg2g;
bmp.width=page.width;
bmp.height=page.height;
bmp.top=0;
bmp.left=0;
Go to Top of Page

RobHerre

Germany
2 Posts

Posted - 02/11/2013 :  09:18:02 AM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
Works perfect!
Thank You very much!
Go to Top of Page
  Previous Topic Topic Next Topic Lock Topic Edit Topic Delete Topic New Topic Reply to Topic
 New Topic  Reply to Topic
 Printer Friendly
Jump To:
The Origin Forum © 2020 Originlab Corporation Go To Top Of Page
Snitz Forums 2000