imageoftext

by Tim C. Lueth, SG-Lib Toolbox: SolidGeometry 5.6 - Images
Introduced first in SolidGeometry 1.0, Creation date: 2012-11-10, Last change: 2025-09-14

returns a binar matrix and an image matrix for a text string

Description

This procedure can be used to generate button images from text string.
It can be also used for converting text into a solid geometry.


See Also: CPLtextimage , VLFLtextimage , VLofimage

Example Illustration

 missing image of imageoftext(line,siz,col,ha)

Syntax

[I,C,n]=imageoftext(line,[siz,col,ha])

Input Parameter

line: text string
siz: Size, default is 10 point
col: Gray scale, default is 204
ha: 'l','c','r'; default is 'l'

Output Parameter

I: Binary matrix
C: Color image
n: number of lines found

Examples

Convert a latex-String:
[I,C]=imageoftext ('\ite^{\omega\tau} ',40); image(C); shg
[I,C]=imageoftext ('TEST',40); image(C); shg




Copyright 2012-2025 Tim C. Lueth. All rights reserved. The code is the property of Tim C. Lueth and may not be redistributed or modified without explicit written permission. This software may be used free of charge for academic research and teaching purposes only. Commercial use, redistribution, modification, or reverse engineering is strictly prohibited. Access to source code is restricted and granted only under specific agreements. For licensing inquiries or commercial use, please contact: Tim C. Lueth

Last html export of this page out of FM database by TL: 2025-09-21