Folks,
What is the best approach to open a single image, scale to multiple sizes and save each scale size to a variable?
Currently, I'm opening multiple images that are scaled and arranged so that the final picture will be copied and saved to Powerpoint. However, depending on types of images imported, two distinct arrangements are needed ("coltwin_1" and "coltwin_2" in attached script). One arrangement will have a different scale value.
As an example, I tried scaling an opened image and save as "col1" which would be in "coltwin_1. The second scaled variable is "col1x" used in "coltwin_2" arrangement. However when using col1x = col1 << Scale(1.5), the scale for col1 propagated through both layouts.
What is the best and cleanest approach to this issue?
Many thanks,
Neil
col1 = Open(SD1 || samplename2 || "_a1_16col_filt.jpg", jpg);
col1 << Scale(.16);
col1x = col1 << Scale(1.5);
col2 = Open(SD1 || samplename2 || "_a2_16col_filt.jpg", jpg);
col2 << Scale(.16);
col2x = col2 << Scale(1.5);
coltwin_1 = Expr( // For surface orientation
V List Box(
H List Box(
sem1,
col1 ,
LT1 ,
),
sp1 = Spacer Box( size(0, 50)),
H List Box(
sem2,
col2,
LT2,
),
sp2 = Spacer Box( size(0, 50)),
H List Box(
sem3,
col3,
LT3
)
)
);
coltwin_2 = Expr( // For Xsec orientation
V List Box(
H List Box(sem1,
V Splitter Box(
col1x,
LT1x
),
),
sp1 = Spacer Box( size(0, 50)),
H List Box(sem2,
V Splitter Box(
col2x,
LT2x
),
),
sp2 = Spacer Box( size(0, 50)),
H List Box(sem3,
V Splitter Box(
col3x,
LT3x
),
)
)
);
Neil