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
Similar Posts:
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
Dec 20, 2009
can i import vector graphics file *.ai file(illustrator generated) into flex3 ??
View 2 Replies
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
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
May 7, 2010
I need to import a bunch of vector work from Photoshop into Flash. Is there a trick to it. So far, on import, it's converting the layer styles into black.
View 5 Replies
Jul 23, 2011
If I want to pass in a vector to a function, a vector of any object specifed would it be someVetor:Vetor.<T>? beause FB 4.5 sais T is undefined.
View 10 Replies
Dec 24, 2010
Created Vector with the initial length of 100.
var v:Vector. = new Vector.(100);
v[90] = "Ninety"
v[190] ="oneninety" //RangeError: Error #1125: The index 110 is out of range 100.
//How to change the length from 100 to 200 to store a value at index 190
View 1 Replies
Oct 8, 2009
i am trying to receive in my function as a parameter either a shape or a sprite and then access their graphics property, but this gives me an error:
Code:
public static function makeRect( obj:DisplayObject, ...
var g:Graphics;
if(obj is Sprite){
[code]...
//1119: Access of possibly undefined property graphics through a reference with static type flash.display:Graphics.
View 1 Replies
Nov 16, 2011
I am currently being confused by the Vector class.I wrote a beautiful XML to TypedClass parser. Works beautifully and without fault. UNTIL a co-worker noticed we got a Conversion Error for Vector.<Number> to Vector.<*>.
Every Vector I've ever tested all extend Vector.<*>.
Vector.<Sprite>, Vector.<String>, Vector.<Point>, Vector.<Boolean>, Vector.<TextField>, Vector.<CustomObject>, etc etc etc. ALL of them.
<type name="__AS3__.vec::Vector.<String>" base="__AS3__.vec::Vector.<*>" isDynamic="true" isFinal="false" isStatic="false">
<extendsClass type="__AS3__.vec::Vector.<*>"/>
[code]...
But then when I use describeType on Vector.<Number>, Vector.<uint> and Vector.<int>.
<type name="__AS3__.vec::Vector.<Number>" base="Object" isDynamic="true" isFinal="true" isStatic="false">
<extendsClass type="Object"/>
<constructor>
[code]....
Now I have accounted for these 3 vectors individually as even uint and int does not extend Vector.<Number> as I would have expected.
And my parsing function works for all types correctly again. But my confusion comes as to WHY this is the case, and why I couldn't find any documentation on the subject.
View 1 Replies
Mar 11, 2011
Class ShootGame implements IGame{
[Code]...
View 1 Replies
Nov 24, 2011
I have a pure AS3 project. I use Ant to build it. Here is a part of my ant script:
<target name="mxmlc">
<exec executable="${flex.home}/${mxmlc}" failonerror="true">
<arg line="-compiler.include-libraries=${lib}"/>
<arg line="-compiler.incremental=false"/>
<arg line="-compiler.optimize=true"/>
[Code] .....
The problem is that my resulting SWF is really big. When I checked what is inside I saw that it has mx.* libs from Flex. Why it is like this? How to kick mx.* from my SWF? In my code I don't use anything from mx.* library.
View 1 Replies