[flexcoders] Vector images versus Bitmaps in Flex (and transparency)

2005-10-18 Thread Eric Raymond
We have a number of transparent images that we'd like to display in
Flex.  I know that Flash is at heart a vector engine, so it suggests
that performance of vector images will be much better than bitmaps.

1) Are vector images typically faster than bitmaps?  I suspect there
are  a number of situations in which bitmaps will be smaller and/or
faster.

2) How does one get vector images with a transparent background into
Flex?  I'm talking about the production process and not the @embed
swf syntax.  Assume the images will be coming from Adobe Illustrator.
 I assume that there are ways to do this with and without the Flash
Authoring tool.  Ideally there is a command line process?

3) From what I can tell, if we want transparency and the ability to
load these on the fly, they must be swf's.  (GIF's need to be embedded
and FP7 does not support transparent JPEG's).Is this true?  If I
convert the transpent GIF's to a SWF, do I lose anything?





 Yahoo! Groups Sponsor ~-- 
Fair play? Video games influencing politics. Click and talk back!
http://us.click.yahoo.com/T8sf5C/tzNLAA/TtwFAA/nhFolB/TM
~- 

--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com 
Yahoo! Groups Links

* To visit your group on the web, go to:
http://groups.yahoo.com/group/flexcoders/

* To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]

* Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/
 





Re: [flexcoders] Vector images versus Bitmaps in Flex (and transparency)

2005-10-18 Thread JesterXL
1.  Nope.  Vector images take more CPU to render, and in pre-Flash 8, they 
are constantly redrawn.  So, too, are raster graphics (bitmaps), but they do 
not require using the internal vector-to-pixel rendering engine; more RAM, 
less CPU.

Yes; use bitmaps when you can.

2. You can:
- utilize Flash, output a SWF and embed into Flex
- utilize Illustrator, import the AI into Flash, and repeat the above
- utilize Illustrator, or another program, output SVG, and import into Flex
- utilize one of the open source drawing packages, and have them render the 
drawing at runtime (DENG for example)

Don't know about commandline.

3. Correct; if you load your Flex SWF into Flash Player 8, however, it'll 
support PNG's  GIF's.

GIF's don't bode well into Flash, mainly because their palletes are 8bit, 
and sometimes transparency throws older versions of the Flash Player off. 
Suffice it to say, if you utilize Flex to import, you should be fine.

- Original Message - 
From: Eric Raymond [EMAIL PROTECTED]
To: flexcoders@yahoogroups.com
Sent: Tuesday, October 18, 2005 12:30 PM
Subject: [flexcoders] Vector images versus Bitmaps in Flex (and 
transparency)


We have a number of transparent images that we'd like to display in
Flex.  I know that Flash is at heart a vector engine, so it suggests
that performance of vector images will be much better than bitmaps.

1) Are vector images typically faster than bitmaps?  I suspect there
are  a number of situations in which bitmaps will be smaller and/or
faster.

2) How does one get vector images with a transparent background into
Flex?  I'm talking about the production process and not the @embed
swf syntax.  Assume the images will be coming from Adobe Illustrator.
 I assume that there are ways to do this with and without the Flash
Authoring tool.  Ideally there is a command line process?

3) From what I can tell, if we want transparency and the ability to
load these on the fly, they must be swf's.  (GIF's need to be embedded
and FP7 does not support transparent JPEG's).Is this true?  If I
convert the transpent GIF's to a SWF, do I lose anything?






--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com
Yahoo! Groups Links








 Yahoo! Groups Sponsor ~-- 
Fair play? Video games influencing politics. Click and talk back!
http://us.click.yahoo.com/T8sf5C/tzNLAA/TtwFAA/nhFolB/TM
~- 

--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com 
Yahoo! Groups Links

* To visit your group on the web, go to:
http://groups.yahoo.com/group/flexcoders/

* To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]

* Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/