Auto-Width of a text overlay

Started by rreyer, January 15, 2018, 08:13:02 AM

Previous topic - Next topic

rreyer

Hi,

I'd like to place some text in images, red for better visibility and a semi-transparent background.

Positioning the text all works fine but I can't get the background color auto-size with the text.

If I set a fixed width then I get the text and background color in that width (image 1).
But if I set the width to 0 (according to the manual that should be "Auto") then the background color is the whole with of the image (image 2). I expected it to be just the right length for the text.

Image 3 shows the settings.

What am I doing wrong?

Mario

If you don't specify  a widht/height, IMatch specifies "auto" in the XAML markup that produces the text overlay. The markup processor then uses the full width and calculates the height based on the text height. This behavior is by design. There is no "adjust width and height automatically" feature in the XAML markup processor.
Specify a specific width or a left/right margin when  your text overlay should not use the full width.
-- Mario
IMatch Developer
Forum Administrator
http://www.photools.com  -  Contact & Support - Follow me on 𝕏 - Like photools.com on Facebook

Mario

-- Mario
IMatch Developer
Forum Administrator
http://www.photools.com  -  Contact & Support - Follow me on 𝕏 - Like photools.com on Facebook