Entrepreneur Geek

Nirav Mehta on life, technology and future

Archive for the ‘problem’ tag

Zooming Text Area in Flex – messes up word wrap – bug??

with 10 comments

We have been struggling with zooming TextArea in Flex for 2 months now. Tried lots of combination but nothing worked. Can someone help?

Essentially, we scaleX and scaleY the TextArea as the zoom level changes. The component zooms in fine, but the text in it keeps wrapping as we keep zooming. We expect the text to stay as it is and just zoom. Not re-wrap.

Here is the text at 100%. Notice the last words on the lines.

TextArea zoom at 100%

TextArea zoom at 100%

Here is the TextArea at 150% zoom. Notice how the wrapping disrupts.

TextArea zoom at 150%

TextArea zoom at 150%

I have a live example if you want to try this out.

We have tried using zoom effect, adding line breaks at the end of each line before zooming and removing them, trying different fonts, embedding them – everything we could think of! But this looks like a bug! TextArea keeps wrapping the text as we zoom.

What could be a solution?

Written by Nirav

August 20th, 2008 at 5:49 pm

Posted in Flex & Flash

Tagged with , , ,

Challenged: Flex HSB variations vs Gimp / Photoshop / ImageMagick

with 5 comments

Working on a project that allows user to change the color of an image using Hue, Saturation and Brightness adjustments from Flex. The same image should then be printed in high resolution from the backend.

The trouble is, when we apply the same HSB variations that Flex used to Photoshop / Gimp / ImageMagick they generate a totally different color output. We want a WYSIWYG color change/printing, so this is not going to work.

The following table shows the output we received!

flex- hsb - variance

Not sure what the solution to this is. ImageMagick has come the closest to Flex’s HSB variations, so I am currently trying to figure out something with it.

Any hints?

Written by Nirav

June 19th, 2008 at 12:15 pm