Skip to main content
Inspiring
July 21, 2010
Question

Image Smoothing

  • July 21, 2010
  • 1 reply
  • 1316 views

Hello,

I am using:

var textFlow:TextFlow = TextFlowUtil.importFromString(source);

to turn TLF markup into a Text Flow for use in a RichEditableText component. The markup may contain any number of images.

The RichEditableText component needs to be rotated slightly, but doing so causes the images to render with really unpleasent jaggies. How should I set image smoothing on all the images in the TextFlow?

This topic has been closed for replies.

1 reply

Adobe Employee
July 21, 2010

There is no way to do that through markup.  There are some alternatives that may work but they would require some client side work.

Loading the images manually, setting the smoothing flag and setting the completely loaded Loader into each ILG's source property before setting the image to the RichTextArea might be made to work. 

Reaching into the rawChildren of the RET and examining the TextLine children for the images and updating them would also be an opportunity.

Neither of these are particularly great.

It's a good feature though - I can add a enhancement request to the bug database.

Richard

Inspiring
July 21, 2010

Hi,

Thanks for replying. I think that would be a really handy feature - my clients(the human kind) are writing content in TLF markup to be consumed by my flex app. They want control of text / links / images, so my only option I suppose is to parse the TLF markup manually and build a TextFlow from scratch (which kind of defeats the point of them using TLF markup).

I'm actually noticing that the text looks pretty nasty too when it is rotated. Is this symptomatic of something deeper down? Surely the text should render OK when rotated?

July 21, 2010

I'm assuming that screenshot is from a Windows player. Device font rendering in Windows is particularly bad - but if you embed the font it gets much better.