RenderText
by Ken Purchase
14 Dec 2009
(Updated 07 Jan 2010)
Draws text (font) into a matrix, by first drawing it in a figure, then capturing the screen.
|
Watch this File
|
| File Information |
| Description |
Draws (renders) text fonts into a matrix, by first drawing it in a figure, then capturing the screen. There are two versions, a "simple" one that only takes a couple of inputs, and the full version that has more flexibility, but perhaps some obtuse inputs.
I have many times wanted to make a matrix (and/or save to a file) an image that includes matlab-generated text in my choice of fonts, and now one can do so with ease.
See the comments in the files for more info, and be sure to run these demos:
testRenderText.m
testRendreTextSimple.m |
| MATLAB release |
MATLAB 7.5 (R2007b)
|
| Other requirements |
Requires getscreen.m from the Matlab User Community (free) which in turn seems to require some sort of Java. |
|
Tags for This File
|
| Everyone's Tags |
|
| Tags I've Applied |
|
| Add New Tags |
Please login to tag files.
|
| Updates |
| 07 Jan 2010 |
(updated to fix a bug in one of the demos) |
|
Contact us at files@mathworks.com