*To:* flexcoders@yahoogroups.com
*Subject:* RE: [flexcoders] Writing text directly to Graphics object.
I think the original poster was looking for something like
graphics.drawText(Hello, format);
But there are (alas!) no APIs in the Graphics class that know how to
render a text
PROTECTED] On Behalf Of Gordon Smith
Sent: Tuesday, April 15, 2008 8:51 PM
To: flexcoders@yahoogroups.com
Subject: RE: [flexcoders] Writing text directly to Graphics object.
I think the original poster was looking for something like
graphics.drawText(Hello, format);
But there are (alas
, April 14, 2008 8:23 PM
To: flexcoders@yahoogroups.com
Subject: RE: [flexcoders] Writing text directly to Graphics object.
Unfortunately, the answer is no.
Gordon Smith
Adobe Flex SDK Team
_
From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Eric Cooper
Sent
From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Rick Winscot
Sent: Tuesday, April 15, 2008 5:30 PM
To: flexcoders@yahoogroups.com
Subject: RE: [flexcoders] Writing text directly to Graphics object.
There is a way to draw a string to an graphical control (i.e
: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Gordon Smith
Sent: Tuesday, April 15, 2008 8:51 PM
To: flexcoders@yahoogroups.com
Subject: RE: [flexcoders] Writing text directly to Graphics object.
I think the original poster was looking for something like
Unfortunately, the answer is no.
Gordon Smith
Adobe Flex SDK Team
From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Eric Cooper
Sent: Friday, April 11, 2008 3:50 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Writing text
Is there any way to write/draw text directly to a Graphics object? For that
matter is there
anyway to draw text (single line of static text) into a Canvas? I suspect that
the answer is no,
having searched and searched... but maybe there's some obscure utility class
that I've
overlooked.
You can draw a TextField to a BitmapData object (using the draw() method)
and then use graphics.beginBitmapFill and pass in that BitmapData (make sure
to specify the right matrix for where to start the fill). But no, as far as
I know there is not way to do it directly, I often use BitmapData as an
8 matches
Mail list logo