Skip to main content
4-Participant
January 21, 2025
Question

Mathcad prime Image function

  • January 21, 2025
  • 1 reply
  • 1204 views

Hi 

I need a function which makes it possible select a image/picture based on a function.

example:

if case=1

Display image 1

else if case=2

display image 2

end

1 reply

25-Diamond I
January 21, 2025

What you demand was possible to do in legacy Mathcad, but Prime is still missing the necessary image operator/component.

I can only think of two awkward workarounds:

1) Modify the XML-source of the Prime file depending on the selection of case and reload the worksheet

2) Use an Excel component to display the picture

 

Only option 2 seems to be reasonably feasible and I seem to remember that such a solution has been posted here in the forum before (but couldn't find the thread in short order).

4-Participant
January 21, 2025

Hi Werner

 

 Thank you for taking time to reply to my issue.

 

I agree with you that optin 1 is not reasonably feasible.

 

I have tried using an excel component, but the image is of a poor quality as illustrated on the right figure. It is the same image file inserted on tw different method.

the left image is manualy incluted 

 

SN_12746097_0-1737467743812.png

 

25-Diamond I
January 21, 2025

I sure see the difference.

Looks like a problem with scaling down the original image (either from Excel or from Prime, I suspect Prime).

You may try to resize the picture within Excel and see if it helps.

Or you may scale down the original image using a decent image editing programme and use the modified images.

I fear that otherwise I can't think of a suitable solution to this problem.