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
 All Forums
 Origin Forum for Programming
 LabTalk Forum
 Size of imported image in graph

Note: You must be registered in order to post a reply.
To register, click here. Registration is FREE!

Screensize:
UserName:
Password:
Anti-Spam Code:
Format Mode:
Format: BoldItalicizedUnderlineStrikethrough Align LeftCenteredAlign Right Horizontal Rule Insert HyperlinkUpload FileInsert Image Insert CodeInsert QuoteInsert List
   
Message:

* HTML is OFF
* Forum Code is ON
Smilies
Smile [:)] Big Smile [:D] Cool [8D] Blush [:I]
Tongue [:P] Evil [):] Wink [;)] Clown [:o)]
Black Eye [B)] Eight Ball [8] Frown [:(] Shy [8)]
Shocked [:0] Angry [:(!] Dead [xx(] Sleepy [|)]
Kisses [:X] Approve [^] Disapprove [V] Question [?]

 
Check here to subscribe to this topic.
   

T O P I C    R E V I E W
RobHerre Posted - 02/04/2013 : 08:12:28 AM
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
2   L A T E S T    R E P L I E S    (Newest First)
RobHerre Posted - 02/11/2013 : 09:18:02 AM
Works perfect!
Thank You very much!
greg Posted - 02/05/2013 : 4:37:00 PM
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;

The Origin Forum © 2020 Originlab Corporation Go To Top Of Page
Snitz Forums 2000