Hai...

can someone help me to draw geometry shapes(line,circle) inside a textarea.

Thanks.

Printable View

- 05-09-2014, 10:43 AMMadhandraw Geometry Shapes
Hai...

can someone help me to draw geometry shapes(line,circle) inside a textarea.

Thanks. - 05-09-2014, 02:35 PMNormRe: draw Geometry Shapes
textareas are for text. What kind of text characters do you want to use to make a shape?

- 05-09-2014, 04:34 PMjim829Re: draw Geometry Shapes
The easiest way I know of drawing shapes using text is to setup an n x m (e.g. 100 x 100) character array and then treat each element in the array

as a large "pixel." Then just use the formulas for circles, etc to generate the coordinates and fill in the appropriate element. Then print out the array.

Of course, this would all be relatively trivial to do in a real Graphics context.

Regards,

Jim - 05-09-2014, 09:23 PMJosAHRe: draw Geometry Shapes
- 05-09-2014, 10:32 PMjim829Re: draw Geometry Shapes
- 05-10-2014, 09:22 AMJosAHRe: draw Geometry Shapes