How can I display the mirror image of text in a textbox?
조회 수: 2 (최근 30일)
이전 댓글 표시
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.
댓글 수: 0
채택된 답변
Evan
2013년 8월 6일
편집: Evan
2013년 8월 6일
Have you tried downloading and installing one of the "backwards" fonts available on many font sites and setting the 'FontName' property of your text object to that font name? I just tested it out and it seemed to work.
plot(0:pi/6:2*pi,sin(0:pi/6:2*pi));
t = text(.5,.25,fliplr('test'));
set(t,'FontName','backwards')
댓글 수: 2
Evan
2013년 8월 6일
Yep. You can find most any font you can think of. The only drawback is that the user will have to have the font installed on their system for it to work properly.
추가 답변 (2개)
Image Analyst
2013년 8월 6일
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").
참고 항목
카테고리
Help Center 및 File Exchange에서 Computer Vision with Simulink에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!