05-31-2024 04:46 PM - edited 05-31-2024 04:58 PM
Hi,
I am trying to resize images and indent them to right side of 2D Picture indicator. Please see the examples below:
1) Default (Origin Left value: 0)
2) Indented right (Origin Left value: -385)
2D Container is 305 wide, image is 225 wide. What I am failing to understand is where this -385 value is coming from. I would like to calculate and auto adjust image position based on calculated "Origin Left value". This values changes if I used a different resolution image but the aspect ratio would be same.
Another example but of different resolution and aspect ratio: (Origin left: -690)
Image is 1280 wide.
This is my code:
I have attached both the images I used as attachment too. I would really appreciate if someone could educate me a little here.
Thank you for reading.
05-31-2024 05:20 PM
Ummm, I found a solution from wiebe@CARYA in a post. I modified it and it works. Although I still do not understand it fully. Will probably have to do some digging when I have time. Posting my solution if someone like me wants a solution.