How to draw vector shape?

I use following statement to draw a shape
[CODE]for(....){
  sprite.graphics.beginFill(..);
  sprite.graphics.drawRect(x,y,1,1);
  sprite.graphics.endFill();
}[/CODE]
But I find above shape is not vector shape.Because I change the IE size,I find the size of shape don't automatic change. How to use sprite.graphics to create vector shape?
Thanks

Set Flash object size to 100% x 100% in the HTML - then you'll see your drawing changes the size as you resize the browser window.
Kenneth Kawamoto
http://www.materiaprima.co.uk/

Similar Messages

  • How to draw 2D shapes on the image generated by JMF MediaPlayer?

    Hello all:
    IS there any way that we can draw 2D shapes on the image generated by JMF
    MediaPlayer?
    I am currently working on a project which should draw 2D shapes(rectangle, circle etc) to
    mark the interesting part of image generated by JMF MediaPlayer.
    The software is supposed to work as follows:
    1> first use will open a mpg file and use JMF MediaPlayer to play this video
    2> if the user finds some interesting image on the video, he will pause the video
    and draw a circle to mark the interesting part on that image.
    I know how to draw a 2D shapes on JPanel, however, I have no idea how I can
    draw them on the Mediaplayer Screen.
    What technique I should learn to implement this software?
    any comments are welcome.
    thank you
    -Daniel

    If anyone can help?!
    thank you
    -Daniel

  • How to make vector shape

    No need to say I'm new to Illustrator ... I hope my request is very easy to explain 'how to' ...
    I would like to duplicate the above and have it be a vector so it sizes smoothly and large.
    Any help will be appreciated.
    Thanks

    linkot wrote:
    Is there a way to make it a vector shape ... once I have the curve it is solid.
    Thanks again.
    It is vector but the envelop distort is exactly that it contains the original art it is really an appearance.
    You have a few choices you can go to
    Object>Envelop Distort>Edit Contents
    Or
    you can select the warped art and go to Object Expand now you will have six paths but if you do that then you should probably group them
    so you don't drive yourself crazy when you go to select and move the art.
    The top is not expanded the bottom is expanded

  • How to draw a shape with line tool then fill with colour

    How can i draw a shape with the line tool and then fill it with colour

    Click and drag from one anchor point to the next, making sure that each new line segment begins where the last one ended. The Line Tool will snap onto the anchors.
    Once you're done creating what looks like a closed path, the lines are still separate objects. To combine them into one path, select them all and press Ctrl/Cmd+J (for Join) or via the menu select Object > Path > Join.
    The Pen Tool can be used in a similar manner, but each segment will be a continuation rather than a separate object. The last (closing) click will be indicated by a tiny circle on the mouse pointer.
    If you make an open path, Ai will still "fill" it with a fill color by assuming a straight path between the last open anchor points. Individual straight paths, however, such as those drawn by the line tool, have no "inside", so they won't show the fill color even if you have assigned one.
    Allen

  • How to draw a shape to Panel instead of draw to Frame

    I have a Frame and add a Panel into this Frame. I want to draw a shape to Panel instead of draw to Frame. how do i do?

    You can do two different things:
    1) For temporary drawings that will disappear when the component is repainted, you can use getGraphics() on the Panel, draw on the Graphics, then dispose the Graphics.
    2) For persistant drawings, subclass Panel and override the paint(Graphics g) method. Anything in there will be painted along with the panel. Start with super.paint(g); when you override for good coding practice.

  • How to draw a shape and have x,y axis

    i have to draw a shape and have x.y axis i want use java but i have no ideas could you help me ?thank you !

    i have to draw a shape and have x.y axis i want use java but i have no ideas could you help me ?thank you !

  • How to draw filled shapes quickly (especially from multiple strokes)?

    Greetings. I'm making a comic for the 1st time and am using Inkscape. My problem is, on paper I'm way, way faster than with a vector drawing program (even when using a Wacom tablet) mainly because I find it difficult to draw shapes with 1 stroke and instead have to spend a lot of time joining multiple strokes into solid shapes.
    Is there some features or plugins in Adobe Illustrator that can make this much faster?  Or are there other drawing methods that would be much faster ?
    I've attached examples of what I want to be done automatically.
    The 1st case shouldn't be hard. The 2nd case of dealing with emergent shapes seems to be very difficult for a computer.  I also have plenty of programming knowlege, so I would be glad to make a plugin to do this if someone can point me to the right idea.

    Which version of Illustrator are you using?
    In current versions there is Live Paint and the Shape Builder tool.

  • How to draw geometrical shapes on Acrobat viewer ?

    For instance, empty or transluscent rectangles, lines, arrows etc... I'm not talking about creating these shapes in a pdf file. I'm talking about adding them in a layer of the viewer, on the top of whatever the viewer displays.
    And I'd need to do that programmatically but I didn't even see the functionnality from the Adobe Acrobat Pro Extended commercial viewer...
    Thanks
    Frederic

    Put your own transparent window on top of ours and draw whatever you want...

  • How can you fix transparency less than 100% when drawing multiple shapes with the pencil tool?

    I draw a (fill only) shape at 50% with the pencil tool and when I go to draw another, the transparency jumps back to 100%. I would like it to stay at 50% for every mark I make, anyone know how? I wish to build up multiple semi-translucent vector shapes like in the attached image.
    Many Thanks.
    Mark

    In the bottom of the Appearance Palette, toggle the (deep breath) New Art Maintains Appearance / New Art Has Basic Appearance button (pant pant).
    I leave it to you to do three things:
    1. Figure out which state of that stupidly-designed single button means which setting.
    2. Figure out if the stupidly-designed tooltip that appears when you hover over that stupid button means:
    A. ...that what the tooltip reads is the current setting, or...
    B. ...that what the tooltip reads is the setting you will get if you click the stupidly-designed single button.
    3. Remember what you figured out the next time you need to visit that stupidly-designed button.
    Adobe doesn't understand this is a simple yes/no decision, and that a far more intuitive simple labeled checkbox will do.
    JET

  • CS6 : How to convert a path stroke in a vector shape ?

    Hello,
    When you use the Photoshop CS6 new function stroke on the path of a vector shape, how can you convert the result in a vector shape ?
    Merging multiple vector shapes doesn't work. The strokes outlines are not vectorized in the new vector shape.
    It's possible to convert in pixel and keep the stroke drawing, but no way to convert in vector.
    Illustrator has a similar function in order to vectorize the stroke.
    Thanks for your help

    Yes, I misunderstood.
    Photoshop has no command to directly create a new vector path from the outline of a stroke.
    You could try making Path from Selection. With the Shape on a white background, click on the pink with the Magic Wand Tool with options as shown below:

  • How to programmatically create this vector shape?

    I have a cardboard cut-out of something I want to create.
    See picture?
    I've  taken a picture and made a vector outline that I'm satisfied with.
    Initial vector shape!
    Now  to get those holes, there's a variety of ways to do it... but I want  accuracy, so does anyone have a suggestion how to pull it off?
    Methods  to achieve the evenly spaced holes inside the piece?
    1 - SLOPPY -  Draw each segment by hand, using photo as a background reference.
    2 -  SLOPPY - Draw a rounded corner rectangle then duplicate/scale/edit it  for each segment.
    3 - SLOPPY - Bring prepared photo in and use  Illustrator's LiveTrace feature to convert the shapes into vector. I  tried, with variations. Have to tweak each individual segment after.
    4  - PREFERRED - Somehow tell the computer to generate X number of objects  along Y path, making them smaller and smaller.
    Method 4 can almost be  done in a number of ways...
    4a-Make a rounded corner rectangle,  duplicate it off in a straight row, group them together, then use  something like Warp.
    4b-Make a rounded corner rectangle, duplicate it  off in a straight row, group the together, then use 3d extrude &  rotate and extract the results.
    4c-Make a rounded corner rectangle,  use Transform and replicate it X times and adjust horizontal/vertical  positioning and scale.
    I like 4c but still not close. How can I  restrict it to be along a pre-determined path (an arc)? Like  text-on-path tool, but with shapes, and scaling down progressively like a  warp.
    Anyone have any advice?
    I need/want precision  because this is a part that will be cut out of a CNC machine for  something that'll be at a tradeshow.

    We need a better understanding of your understanding of terms like "accuracy," "evenly spaced," and "precision."
    If I interpret "accuracy" to mean "true to the original raster image," then I would use method #1. It's "sloppy" only if you do not know how to use Illustrator drawing tools.
    The blend tool might get you to method #4, but you will be constrained as to spacing and shape progression.
    Note that you can replace the spine of a blend with a path you've created.

  • How do I automate global vector shape, mask & path transfers to Illustrator?

    Using: WIN7, Adobe CS5, PS, AI (but others may appreciate answers for CS6, etc.)
    When I need to move a project from  Photoshop to Illustrator, I need an automated way to prep shape and vector mask items for export--preferably preserving the structure and layout that already exists as layer names and order, character and paragraph settings, and of course global registration. My scripting is limited to recording actions, so I need to find an existing script or get coached on this. Any recommendations?
    I have googled and waded through numerous forum posts trying to research this on my own, so I know about the ability to export my path collection, but that's usually inapplicable in reality. It only deals with vectors from the Paths pallette. In Photoshop, I use the Paths pallet to store master and WIP paths, but all the working paths are either shapes or vector masks--or active type layers. Often enough that it's become an issue, I'll need to move the whole project to Illustrator. Obviously, the process has issues; I'm not expecting the rastor layers or Photoshop styles to carry over, but I see no reason why I can't capture text, shape and vector mask elements.
    They all have a vector component, but simply opening a PSD in Illustrator flattens (badly) the layers. I select the "Convert Layers as Objects" but have yet to see it extract editable text. I'm not sure if it even attempts to do anything with vector shapes or masks. I've got a process for moving a project one element at a time, using registration marks--but this requires turning text into shapes most of the time, especially if I am trying to preserve kerning and leading crucial to the layout. Maybe I just have not found the right info, and there is a way to transfer editable text without losing character and paragraph settings. I'd love to hear about it.
    For now, I'd be happy to stop wasting time doing a ton of conversions and renaming by hand, just so I can preserve the work I've already invested.
    One suggestion, posted under a multiple path export question, was to use scripting... but no one explored or explained how to go about it. I'm not asking for the impossible, however. I simply need help working out my own solution: if there is no application method for transferring the elements, try to script a method to prep those elements for export. Before I even attempt to reinvent someone's wheel, I am putting the question out there:
    Does anyone know of a solution that already exists?
    I appreciate hearing your advice and thank you for giving this some attention!
    edit:  I kept at it and managed to open my current project PSD in AI with text and shape/mask vectors successfully--not as cleanly as I'd hoped but the relative positioning of things was acceptable. I am still interested in hearing people's suggestions on better ways to transfer work from one tool to the other, though. I know this is going to come up for me again and again...
    Thanks!

    Hi,
    It sounds like you have gotten this working for your project, but you might look at this thread for a few different solutions.  http://forums.adobe.com/thread/1045757

  • Adobe CS5 - How can I place vector shapes behind a mask?

    Hello,
    I am creating a logo in Photoshop which will have rows of horizontal lines that form the shape of a hexagon.
    This is what part of the logo will look like:
    I used the Vector Shapes tool to create the lines, because I will need to re-size the logo without distorting it.
    I want to use a mask shaped as a hexagon to cover the edges of the lines. Here is how I created the hexagon mask:
    New layer
    Polygon tool
    Changed the setting to Paths
    Created the hexagon
    Went to Layer > Vector Mask > Current Path.
    After I created the mask I tried to see if I could copy and paste the lines (still vector shapes) into the blank area of the mask, but when this happened the lines were converted from vector to raster form.
    What is the best way to mask multiple vector shapes without changing them into rasterized images? 
    Here are the screenshots:
    BEFORE:
    AFTER:

    Did you try clipping the two layers? Place cursor between layers, hold down the alt/opt key and click.

  • How to place image and crop to fit inside vector shape

    I'm trying to place an image on top of a vector shape and then i want to trim the edges of the image so it takes on that shape (essentially filling the shape with the image)
    I'm also trying to do this with two layers of vector shapes, i want to fit one within the other and not have any over hang.. the top or "filling shape" is an array of hexagons (making a honeycomb like structure) i want it to fit within the underlying oval (lime green one) shape.  here's a link if you want to see what i'm doing.. its the one on the right
    www.oregonstate.edu/~pearsoan/images/achieve3.ai
    How do you do this?

    Blue,
    Put the shaping (vector) path on top of the image, select both, and Object>Clipping Mask>Make.
    I cannot open the file to see what there is to see, and I have to leave in a moment.
    If you upload an image, using the Camera icon, all helpers can see it here in the thread.

  • How to draw a proper spiral shape in InDesign CS5?

    I am facing problem with drawing spiral shapes in InDesign! I cannot figure out how to make a perfect spiral!
    Could you please figure a way out for it?
    Thank You,
    Ankit Tanna.

    Indesign doesn't have a tool to directly do it...........
    If you have Illustrator , Use spiral tool in Illustrtaor and then copy and paste the path in Indesign

Maybe you are looking for

  • Issue in Vendor A/c clearing

    Hi We have an issue in which we have paid some advance to vendor in EURO at a certain rate say 1 EURO = 1.25 USD. Now at the same rate we have booked the vendor invoice in USD because the bills from vendor  have come in USD. Thus both the down paymen

  • Software component with Key ID does not exist

    Hi Friends,            Here I am in need of your help. I got involved in an upgrade from XI 3.0 to PI 7.1. The Basis has imported all the SWC & Business systems from XI 3.0. When I am trying to activate the objects imported from IR of XI3.0 then It i

  • Reading xml values in sql server..

    Hello All,                 I have a stored procedure which returns an xml. Now, i am writing another database script using this SP. Now in my script, First i will execute the SP and i am getting the O/P as <root><person><id>168369</id><fullname>kisho

  • Cells Appearing Black in Report Designer

    Hi Guys, I have an issue here! When I open a report in Report Designer, all cells are coming with black background. When I click on each cell, then I am able to see the cell content with original formatting. I have checked with all cell format settin

  • Install problem with account creation (step 2)

    Hi there, i have some problems installing the SAP WebAS 640 and hope someone can help me out. I'm getting following error message (from logilfe): INFO[E] 2005-05-23 10:04:54 File system export (share) saploc does not exist. INFO[E] 2005-05-23 10:04:5