Subscribe Bookmark RSS Feed

How to set JPG dimensions in PictureBox?

djhanson

Community Trekker

Joined:

Jun 23, 2011

Can this be done, that is, can a message be sent to a Picture Box to set the incoming JPG's height and width dimensions in pixels?  I can grab the picture and modify its dimensions, so I'd presume it's JSL scriptable?


Else, if not, is there another Display Box which can set a graphics file (e.g. JPG) dimensions?  thx... dj

1 ACCEPTED SOLUTION

Accepted Solutions
Solution

cool.. it's <<set size() of course.  makes sense...   so if it helps anyone in the future, it's like:

opfile=open("C:\temp\mypic.jpg", jpg);

opfile<<set size({300, 300});

new window("my window", picturebox(opfile));

1 REPLY
Solution

cool.. it's <<set size() of course.  makes sense...   so if it helps anyone in the future, it's like:

opfile=open("C:\temp\mypic.jpg", jpg);

opfile<<set size({300, 300});

new window("my window", picturebox(opfile));