How can I display the mirror image of text in a textbox?
Show older comments
How can I display the mirror image of text in a textbox?
(preferably an annotation textbox object but a simple text object would work too. using an image of text is less than ideal)
Seems like this should be easy, but I can't find anything on how to do it.
Accepted Answer
More Answers (2)
dpb
on 6 Aug 2013
0 votes
doc fliplr
5 Comments
dpb
on 6 Aug 2013
Which is just a character string...which is just an array of char()
figure, plot(1:10);
h=annotation('textbox', [.2 .4 .1 .1], 'String', 'Straight Line Plot 1 to 10');
set(h,'string',fliplr(get(h,'string')))
If multi-line cell, then char() it and back to cell...
Sam
on 6 Aug 2013
dpb
on 6 Aug 2013
Well, that is imaging, then, not texting as IA points out.
Sam
on 6 Aug 2013
Image Analyst
on 6 Aug 2013
0 votes
I think you need to create an image with the text on it, then you can use flipud() or fliplr() to create the mirror image. If you have the Computer Vision System Toolbox, you can use insertText. http://www.mathworks.com/help/vision/ref/inserttext.html to stamp your text onto an image ("burn it in").
Categories
Find more on Convert Image Type in Help Center and File Exchange
Products
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!