Actionscript 3 :: Air - Rasterize Vector Graphics At Runtime?

May 19, 2011

i've developed an cross-platform AIR application, which seriously under performs on mobile devices caused by animating/using vector graphics instead of bitmap assets. employing cacheAsBitmapMatrix / cacheAsBitmap is better, when and where assigned appropriately, but still not as fast as using bitmap assets.

i've attempted to bitmapData.draw() the vector graphics to a Bitmap object at runtime and animate the bitmap object instead, but this performs only about as well as (or maybe even exactly the same as) simply caching the vector graphic as a bitmap.

Flash Professional 5.5 UI now has the ability to convert a vector graphic into a bitmap assets, but is it possible to do this at runtime? is it possible to have an actual Rasterize() routine to convert programatically drawn vector graphics and maybe even editable text into bitmaps at runtime for optimal animated performance, especially on mobile devices?

View 1 Replies


Similar Posts:


ActionScript 3.0 :: Loading Vector Graphics At Runtime?

Oct 20, 2009

I'd like to know if there is any way or any vector graphic file format that i can load dynamically at runtime on a web-based flash application.I have some files in pdf that i want to load in and i can convert them to jpgs at runtime and load the jpgs but then i lose vector graphics so when i zoom in and out they become pixelated.
 
I had a look a look at flashpaper to convert pdf to swf and load them in but i can't see anywhere in the documentation about converting the pdf's at runtime rather than manually dragging and dropping them in.So far i've looked at pdf, svg and .ai but none of these can be loaded at run time just imported into the .So can this be done? Or alternatively is there an application that can do the pdf -> swf conversion from the commandline then i could trigger php to do the conversion at runtime.

View 3 Replies

ActionScript 3.0 :: Divinding Vector Graphics Into Vector Graphics

Jul 28, 2009

I have a large vector drawing (imagine 5000x5000) that i want to break up into separate pieces. I know that I can convert this vector drawing into a bitmap and then use the copyPixels method to create many separate bitmaps of the different regions of the original vector drawing, but is there any way to subdivide it into movieclips that just contain vector graphics instead of a bitmap?The reason im dividing a big chunk of vector graphics into smaller pieces is for performance reasons, so flash would only render a small part of this big chunk at a time (only certain regions/voxels/subdivisions are rendered at a time). But bitmaps apparently take up a lot of memory and the system im using would take much less memory if these subdivisions could be preserved in their original vector graphics form.

I imagine I could use masks somehow to achieve this effect (for each subdivision, duplicate the huge image and mask only the region that the subdivision represents), but I dont know the performance costs of masking or if this will create other problems.So is there anyway to split up a movieclip of vector graphics into smaller movieclips of vector graphics the same way copyPixels can with bitmaps?

View 1 Replies

C# :: Vector Graphics Libraries Available In AS

Nov 16, 2010

I'm looking to build a website that has a flash interface and allows visitors to upload vector art in a number of file formats such as SVG, EPS and AI.

I have two rather large problems...
1) I need to load the original vector art, probably convert it to FLV and display it in my flash application.
2) After the user potentially loads a number of images, adds some text, rotates or transforms some elements, I need to save the resulting composition into a vector art format that I can print.

I'm not much of an AS developer...my experience is mostly in .NET/C# & C++. I'm looking for a good library or API that provides the functionality I will need to convert different image formats and save the results. How much of this can be done using Flash / AS...? How much in C#...?

View 1 Replies

CS3 Importing Vector Graphics From Illustrator?

Apr 9, 2009

I've checked on the web, but I can't find an article/explanation on how to import vector graphics from illustrator into Flash.If this isn't possible, how do you go about dynamically importing it (not in the swf)?

View 1 Replies

ActionScript 3.0 :: Get Flash Vector Graphics?

Oct 23, 2010

I can't seem to find free vector art made with flash.  I want something like an FLA file I could open up and have a button or something nice looking to copy and paste.  Does such a place exist?

View 2 Replies

Vector Graphics - Creating FXG For Flex?

Aug 9, 2010

I need to create flash content dynamically- towards that need to build images. I need help on two points

a) are vector graphics always better than raster graphics on size/ do vector graphics take longer to render

b) do we have open-source tools to create fxg files to import into flex builder

View 3 Replies

Flash :: Possible To Retrieve Vector Graphics From A SWF?

Jul 5, 2011

Our scenario is that we have a visualisation in a flex .swf that we load data into (through a web service call). Once the data has been loaded we would like to use the resultant image in a PDF.I can send an image of a DisplayObject back to the server as a PNG and put it into a PDF (using iText), but the png is not scalable and it looks bad in the PDF at different zoom levels.To add a bit more clarity. The visualisations are not vector graphics that we import or embed during development, they are charts and trend graphs and custom visualisations created through the flex/flash drawing API, at runtime, based on data retrieved from the server.

View 3 Replies

Flash 8 :: Creating Vector Graphics For Import?

Aug 24, 2009

I've done some searching and can't find a good answer on workflow for importing vector graphics in Flash 8.I created a layered Photoshop file and opened in Illustrator to save in .eps format. I'm using Flash 8 and Illustrator CS3. I've tried many options (including trying to simply create my buttons in flash), but can't seem to get the buttons to import properly for scaling purposes into Flash.

View 3 Replies

ActionScript 3.0 :: Make Path From Vector Graphics?

Oct 14, 2009

I am making an application, that will let you enter your name and then a car will drive each letter of your name in the sand. I have made a car and my artist made letters with vector graphics as a single line (.ai). But now I don't get how to make an algorithm that will drive through the lines of each letter. My first solution would be to make an editor, where you can create path, but I don't have that much time. Is there a chane to make path from vector graphics so that the care can drive through it?

Attachments:
letter.jpg
(21.0 K)

View 2 Replies

Using Vector Or Raster Graphics When Manipulating 3D Artwork?

Nov 20, 2009

I've got a project that heavily utilizes the new 3d artwork tools in Flash CS4. My question is has anyone done any tests to see if Flash is quicker with raster or vector graphics? My SWF really bogs down on slower machines.

View 2 Replies

JavaScript :: HTML5 Useful In Animating Vector Graphics?

Nov 15, 2010

Does html5 developers animate vector graphics in any way? I'm talking about straight key-frame vector animation, such as what flash does. Is the way to do this basically using javascript to manipulate SVG graphics such as what [URL] does? which is a bit weird to me since it's been supported in browsers for quite some time) or does html5/canvas lend itself someway to vector graphics animation? I'm just trying to understand what's the "new" way developers will animate vectors on the web if/when flash plug-in eventually dies.

View 3 Replies

ActionScript 3.0 :: Get Better Anti-aliasing For Vector Graphics?

May 20, 2011

I was wondering if there was a way to get better anti-aliasing than the StageQuality BEST/HIGH, where the Vector graphics are anti-aliased using a 4 x 4 pixel grid. I was thinking going maybe a 8 x 8?

I would be using it only temporarily, to .draw vector graphics into bitmapdatas, so performance wouldn't really be issue. I can always tell that Im looking at a vector graphic in Flash by the slightly poorer aliasing than if you look at the same vector path in photoshop etc. Just being a perfectionist I suppose

View 9 Replies

ActionScript 2.0 :: Erase Vector Graphics Run Time?

Apr 20, 2005

is it possible to erase vector graphics run time...

e.g. you have some dirt in one layer (a vector shape), the layer below containing an image, and then "wash" the dirt away with the mouse cursor...

View 2 Replies

Professional :: Reduce File Size Vector Graphics

Jun 16, 2010

When it comes to imported vector graphics are there any methods to decrease the swf's file size as much as possible? So far I have:

- imported an illustrator ai file (strokes 'expanded' in illustrator and unneeded swatches/ brushes etc. deleted and with no raster images embedded)
- exported the file in illustrator as swf and imported that swf into flash
- imported ai file and breaking it down to flash shapes
- optimized those shapes as much as possible
 
I rather use vector as much as possible. For a banner for examle, I've imported vector images of trees. I couldn't get it below 40 kb so I exported all illustrator files to png files which helped. Can detailed vector images be optimized just as much? Or is it better to use bitmap files when it comes to more detailed graphics? Does it matter if it is a vector images made in flash or a imported vector file even if both have the same number of paths?

View 1 Replies

ActionScript 3.0 :: Load Bitmaps / Vector Graphics In Application

Jul 28, 2011

I want to have DisplayObject that will randomly contain bitmaps/vectors from some database. I want to implement this using only code. How?

View 1 Replies

Actionscript 3 :: Vector Graphics Flood Fill Algorithms?

May 1, 2011

I am working on a simple drawing application, and i need an algorithm to make flood fills.The user workflow will look like this (similar to Flash CS, just more simpler):the user draws straight lines on the workspace. These are treated as vectors, and can be selected and moved after they are drawn.user selects the fill tool, and clicks on the drawing area. If the area is surrounded by lines in every direction a fill is applied to the area.if the lines are moved after the fill is applied, the area of fill is changed accordingly.Anyone has a nice idea, how to implement such algorithm? The main task is basically to determine the line segments surrounding a point. (and storing this information somehow, incase the lines are moved)[code]

View 3 Replies

ActionScript 3.0 :: Save Dynamically Created Vector Graphics?

Feb 11, 2007

it is possible to save dynamically created vector graphics?Basically, I have a pen tool for drawing on screen and I would like to have the ability to save this data for later use, using Adobe Air.If it is possible, can anyone point me in the right direction with regards to the best file format to use, etc.

View 8 Replies

ActionScript 3.0 :: Possible To Save Dynamically Created Vector Graphics?

May 5, 2010

Does anyone know if it is possible to save dynamically created vector graphics?Basically, I have a pen tool for drawing on screen and I would like to have the ability to save this data for later use, using Adobe Air.If it is possible, can anyone point me in the right direction with regards to the best file format to use, etc.

View 5 Replies

Professional :: Loading Vector Graphics File Format In IOS Converted App?

Mar 9, 2011

I'm going to create a iOS app in flash and convert. I'm thinking I may want to load graphic assets at runtime. I'd like these assets to be vector graphics so they can be resized easily with no quality degradation. I usually use SWF files ofr this purpose. Unless I'm wrong, a converted iOS app probably does not load SWF files. So I'm wondering what kind of vector graphics file format can iOS load at runtime?

View 1 Replies

ActionScript 3.0 :: Load Vector Images .ai Or .eps In Flash At Runtime?

Sep 10, 2009

Is there a way I can load vector files in formats like .ai or .eps in flash at runtime, i.e. using AS3?

View 1 Replies

ActionScript 1/2 :: Turn Lines (vector) Into Bitmap At Runtime?

Feb 12, 2012

After drawing some lines with moveTo and lineTo, how to convert them to bitmap so they do not lag if there are many.

View 14 Replies

Flash - Create A Vector With A Runtime Defined Data Type?

Feb 17, 2011

Typically you create a Vector (strongly typed array) specifying a data type like:

new Vector<PictureBox>();

However I need to create a utility method that should be able to create a vector of any given datatype. Is it possible to specify a type using a variable instead of hard-coding it?

var type:Class = PictureBox;
new Vector<type>();

View 2 Replies

Actionscript :: Generate Animated Sprite Sheets At Runtime From Vector?

Feb 8, 2012

I would like to use Bitmaps in my Actionscript games.For me this represents a large change in my workflow as I have always used Vector but Bitmaps are really so much faster to render in certain circumstances. As far as I can see, 90% of all my game assets can be bitmaps.Firstly, are there any good tools for working with Vector to BitmapData? Libraries or OpenSource utilities?I know you can just draw to a BitmapData, and I do that, but what about Animations? What about a MovieClip of a laughing cow? How can I render that MovieClip at runtime to some kind of Bitmap version?But more complex than that What about situations where you do not have the MovieClip in a raw form?Imagine 10000 cogs turning at the same rate which is generated with code. This is hard work for the processor, so drawing it to a Bitmap for the duration of 1 revolution, would replace 10000 cogs with a SpriteSheet. I could destroy the cogs, and keep the SpriteSheet. Can anyone offer me any resources or google keywords I can search for, not sure of the technique but it seems to make sense? Especially with Starling..

View 2 Replies

ActionScript 3.0 :: Altering Drawn At Authoring-time At Runtime Graphics?

Feb 13, 2009

Is it possible to access the graphics.* - characteristics of objects that I have drawn at authoring-time at runtime? If I have drawn a single line in a movieclip I'd like to do sth like this:

[Code]...

View 2 Replies

ActionScript 3.0 :: Recording A Graphics Intensive SWF As A Video Format Runtime SWF?

Mar 24, 2010

What options are available for recording a graphics intensive SWF as a video format such as MOV, MPEG, or others. I have created an interactive SWF and would like to capture video of it so that I can share it in different formats. I have used some free screen capture software before, but am not sure it is the best choice since maintaining the frame rate is important. Worst case scenario, I could just eliminate user interaction and automate the input...

View 2 Replies

Get The Rasterize Type In Flash CS4?

Jul 22, 2009

I have not used Flash in a while...been trying to rasterize type so I can do a shape tween on it...

View 1 Replies

Flex :: Import Vector Graphics File *.ai File?

Dec 20, 2009

can i import vector graphics file *.ai file(illustrator generated) into flex3 ??

View 2 Replies

ActionScript 3.0 :: Vector Of A Superclass Hold A Reference To A Vector Of A Subclass?

Sep 13, 2011

I'm getting

ActionScript Code:
1067: Implicit coercion of a value of type
__AS3__.vec:Vector.ie.aro.floorplanviewer.model.buildingVOs:ConfigurationVO>[code]....

which surprises me as ConfigurationVO inherits from NodeVO.Is the compiler really not able to figure out that a Vector of a superclass should be able to hold a reference to a Vector of a subclass?

View 7 Replies

ActionScript 2.0 :: Attach Graphics Instead Of MC Cause A Graphics File Size Is Relatively Small Than That Of A Graphic?

Apr 9, 2005

I was wondering about MC and hey can help to lag a game out. I set up an advanced class system so i don't have to use MC to simulate walls, all i use isthe x,y,width and height. Well anyway since i don't need MC anymore I was wondering if there is a way to attach Graphics instead of MC cause a Graphics file size is relatively small than that of a graphic, I think. If anyone could tell me thats true and show me a way to attach graphics that would be nice. I haven't tried it yet but maybe if I exported the graphic from the library imihgt be able to call its name, but it doesn't have an instance name so im stuck.

View 2 Replies







Copyrights 2005-15 www.BigResource.com, All rights reserved