graphics.lineStyle thickness pixels?

Hello, in the adobe ActionScript 3.0 documentation the thickness of flash.display.graphics.lineStyle parameter is defined as:

"An integer that indicates the thickness of the line in points;"

How many pixels is at some point? Basically, I need to know how many pixels will take a line created with a certain thickness.

Hey Noah,.

Unlike what the description says, I think the value is actually in pixels. Since the time I used it, the eye it looks like its pixels in.

Here is an excerpt from a page on adobe.com where they show an example of its use. They also refer to as a value in pixels :

"... For example, this line of code indicates the shape named myShape to draw lines that are thick, 2 pixels red (0 x 990000) and 75% opaque:... »

and the code example:

myShape.graphics.lineStyle(2, 0x990000, .75);

Here is the page:

http://livedocs.Adobe.com/Flex/3/HTML/Help.HTML?content=Drawing_Vector_Graphics_4.html

hope that helps. Good luck!

Tags: BlackBerry Developers

Similar Questions

  • delete, then add a Sprite clears his graphics.lineStyle

    Hello

    I have a Sprite that contains another Sprite which is a blue rectangle:

    var rectangle: Sprite = new Sprite();
    rectangle.graphics.lineStyle (2, 0x0000FF);
    rectangle.graphics.drawRect (0, 0, 50, 100);
    addChild (rectangle);

    Then, somewhere in my code, I want to take a snapshot of the Sprite without the rectangle but I want the rectangle to stay in the Sprite however.

    I don't know how or event if it is possible to copy the sprite, so instead, I tried to delete the rectangle, take the shot, and then add the rectangle:

    var rectangle: Sprite = mySprite.removeChildAt (rectangleIndex);

    var bmp:BitmapData = new BitmapData (mySprite.width, mySprite.height);

    BMP. Draw (mySprite);

    mySprite.addChild (rectangle);

    But then the rectangle is no longer blue but black. Like the sprite.graphics, lineStyle is disabled.

    Do you know how I can keep the line style or do you have another idea?

    use:

    rectangle.parent.removeChild (rectangle);

    create your bitmap using rectangle.parent, then

    rectangle.parent.addChild (rectangle);  restore the rectangle to its parent.

  • Help! Imported a Captivate 4 on Captivate project 5 and graphics are all pixelated? Help please!

    We have just improved CS4 CS5 and my project of publication and download on my LMS after I realized that all my graphics are pixelated.  The charts have been developed on Illustrator or Photoshop 4.  Is this why? Can I do anything to solve that within the program?

    I was really frustrated with Captivate 5!

    I am aggregating the project using a program called Simple SCORM Packager.  I don't have more.

    I hope someone can help me! Thanks in advance!

    Andrew

    What quality settings that you use to publish every slide?  (Select a slide, go to properties > general > quality)

    If it is set to low 8 bit, try to use the 24-bit high.

  • my text graphics are sometimes pixelated but are ok if I start it in SafeMode firefoxes

    I tried to disable addons, reinstall firefox with and without my original settings, but it still does it in safe mode it does not do so, it is quite noticeable in the face book but it also does other things of text, including the pluggins how to remove page

    Thanks ideato, he helped as well.

    Best regards
    Jesper

    (8.1 to Windows and Firefox 26, as well in the Danish versions).

  • Error of variable data Type.

    I have a quick question. I'll put up a variable with a data type of number, when I declare the variable, it has a default value.

    I am trying to transfer data to the variable to an input text box but I get an error when I run the movie. I tried both a text entry box and a dynamic text box, but they both produce the same error.

    If I remove the variable declaration seizure figures series film and it updates the variable data but everything I read is not a good practice.

    I enclose the code, could someone please help me. I don't remember having such problems with ActionScript 2.

    Thanks for the help.

    Code:

    Shape: rectangle var;

    thick var: number = 2; line thickness
    var color: Number = 0x000000; Contains the value of color

    myButton_btn.addEventListener (MouseEvent.CLICK, onClick);

    function onClick(event:MouseEvent):void
    {
    Color = colorField_txt.text; (Line 11)
    thickness = lineThick_txt.text; (Line 12)
    Rectangle = new Shape();
    rectangle.graphics.lineStyle (thickness, color,. 5);
    rectangle.graphics.drawRect (10, 10, 100, 150);
    addChild (rectangle);
    }

    myButton_btn.buttonMode = true;


    ERROR MESSAGE:

    1067: constraint implied to a value of type String to a type unrelated to number. (Refers to line 11)
    1067: constraint implied to a value of type String to a type unrelated to number. (Reference to line 12)

    Thanks again for any help.

    Mike

    the text property of a textfield is a string, so to put this string in a variable of type number, you must first convert it to a number to
    for example.
    thickness = Number (lineThick_txt.text);

    ActionScript 2 performs this conversion automatically.

  • Adobe supports any rental online of the CPU for the pixelation or otherwise manipulate graphical files of several gigabytes?

    Adobe supports all online rental of CPU or purchasable app for pixelation or otherwise manipulate graphical files multi-Go?  I have a workstation HP Z600 with dual core and 12 GB of memory and a graphics file 33K pixelation injects in expectation of geological time.  In the future, I need to manipulate - rasterize, etc. - multi-gigabit, 600ppi, 60x40inch graphic files.  Amazon can be a resource, but it's HPC cluster computing resources or grid have a long learning curve interface.

    I think you have good arguments for the upgrade of your machine. Return on investment should be almost instant here.

    That said, Photoshop should be able to manage very well as long as you have a little patience and a reasonable work disk configuration. Be sure to keep that on your system drive, which is the main thing - otherwise it can grab up in an intractable confrontation between OS and PS files for the Exchange. Although it should better work with SSD.

    I used to manage files of 1 GB with a 32-bit Windows xp and only 2.2 GB of RAM effective system. It is a miracle that it worked at all, but he did. The thing back then was to have a RAID0 array as dedicated scratch disk.

  • Thickness of border with text.

    Took a few minutes to get on the internet before I asked this, no nothing. IM playing with astetics with my project and im trying to change the thickness of the border on a textbox control that is generated.

    Is it possible to change the thickness of line?

    Do you mean the border when you create a dynamic field, then click the 'See the border around the text' in the properties? If so, you can not change that. But you can just draw yourself...

    As an example you have a field called myText, on stage:

    var s:Shape = new Shape();

    s.graphics.lineStyle (2, 0xff0000);

    s.graphics.drawRect (myText.x, myText.y, myText.width, myText.height);

    addChildAt (s, 0);

  • Satellite C55-B5170 - graphics issue when you play

    Hello

    I recently bought my Satellite (C55-B5170) and started to install applications of my previous laptop. However, when I went to try to play a game, I found that the graphics have been pixelated/blocks. This happened with almost all of the games I've tried. All my drivers are up to date, and I have not seen this problem on another thread.

    Thank you!

    EDIT: Minecraft, a game quite simply, is broken (similar to the image provided). However, the Lego game worlds newly released works very well.

    All of your games is designed for Win8/Win8.1?

  • Tecra A9 PTS52E - can I use pixel & vertex shader?

    Hello!
    Problem: A malfunction on pixel & vertex shader
    Technical data:
    Model: Toshiba Tecra A9 PTS52E
    OS: Vista Business 32-bit
    RAM: 4 GB
    Chipset: 965 PM
    Graphics: (probably: X 3100)

    Details: Install some games (not new) it pops up the window that my graphics card is not shader pixels. I think - WTF - X 3100 and I965 Chipset families graphics cards have pixel shader - download graphics driver is useless-> graph avaible only version of the map is only on the Toshiba.com: 7.14.10.1244 - and this version too, I installed on my computer. Intel (WTF) does not support my chipset (965 PM)

    Question: Is there way/solution to update my graphics driver and be happy with pixelshadering & vertexshadering my games?

    Hello

    Theoretically the Intel X 3100 graphics card supports Pixel - and Vertexshader 4.0 because it s DirectX 10 graphics card.

    In your case, I would try the new driver to display on the Intel site. Download the latest version and install it but first remove the old driver.

    In addition, it would be interesting to know what you are trying to play the games. Don t forget that Intel adapters are not the best for games and perhaps the games doesn t support this card.

  • Satellite M70-144: graphic hardware bug

    I bought a Toshiba Satellite m70-144, December 2005. Very nice computer, but there is an error with the ATI Radeon X 700 graphics card. Pixels are placed in random places with random on the same screen of _avant_ operating system is loaded.

    I called the shop here in Norway, and they told me that there is a bug of material on the ATI card, and it must be changed. So I returned the computer to the repair shop, and they have changed the card and installed it. It was okay when I got it, but now it's back to where he was. Pixels of error are randomly placed on the screen.
    Here is a screenshot of what happends: http://topland.frac.dk/test.jpg

    Before that the ATI card has changed, the computer crashed at random. Windows reported an error with the dll ATI drivers.
    NOTE: even once, this is not a fault of sofwate. defects in pixels are shown _avant_ the operating system loads.

    What should I do now? The graphics card is changed, and there is always a mistake.

    Do anyone else here have the problem?
    I want a new Toshiba Satellite M70-144 :'(

    Hi Jostein,

    Your laptop is still covered by the warranty, so I return it to your nearest Service agent for them to fix it again.

    As you say, the problem is not related to the operating system, so there must be a malfunction of the graphics card itself.

    Good luck

  • Text and vectors from illustrator look pixelated CS6?

    Screen Shot 2013-05-24 at 8.26.23 PM.png

    I have attached a picture of my question. In Illustrator, my all my text and vector Graphics look badly pixelated, even in 100% zoom. I checked the preferences and anti-aliasing is enabled. If I save my file in PDF format and view it in PDF format, everything looks great. No idea why this is happening? I would appreciate any advice.

    OK, looks like retina was the problem. I installed a software update on an adobe application manager and who has done the trick.

  • Black pixels on some colors

    A certain images, such as increase the resolution, black pixels appear. When the image fits the screen, I see nothing, but as I increase the resolution, these black pixels become very obvious, but only on certain colors, such as blue of this dress.

    Help!  What is going on?

    Anyone know?

    CS5

    Capture10.PNG

    Looks like a known issue with some AMD/ATI graphics card drivers: pixels with red = 0 are displayed black. As far as I know, the very recent 13.2 Catalyst beta 5 is good.

    http://support.AMD.com/us/KbArticles/pages/AMDCatalyst132BetaDriver.aspx

  • Graphics bloating after change page dimensions

    (FM10 on Win7x64)

    Vaguely, I remember reading a similar symptom elsewhere in the forum, but unfortunately I don't remember where.

    Before changing the page size of the USL in A4, graphic references (.pdf, .png, .gif), a file print well, with fine lines.

    After changing the size of the page, in FM, installation in PDF and Distiller, lines and text in graphics bloat: thicker, a bit fuzzy. Even when I change the dimensions of the page back to the original USL, the graphics are inflated.

    Text of the FM file looks just as good in both cases, so this seems to be something that only deals with graphics.

    Print settings dialogue box in Acrobat do not seem to change the behavior. I can specify the actual size or Fit and get the same result.

    Any thoughts?

    You see this bloat in the FM file or just the resulting PDF file? What is happening to all imported graphics? Are the graphics raster or vector and what formats? Exact same joboptions used?

    Could you please post before & after screenshots illustrrating this phenomenon.

  • MovieClip sprite vs drawing with graphics

    Hello! I have a program that dynamically draws a polygon anywhere where the user clicks on the screen. (using lineto, moveto) However this polygon is always behind the other symbol of objects on the screen even if his last added in the childlist is. Is there a problem with the depth when you draw symbols vs drawing with lines? How can ensure me that my smart object will display in the face?

    Thank you

    Will be

    OK the problem is that you have the graphics in the main class through the polygon class to draw

    which works great but all the objects in the main class, if they are added before or after the polygon will appear above any line draw

    to work around this problem

    change the DrawPolygon() function do not take a target

    so

    public void DrawPolygon() (x: Number, y: Number, sides: uint, RADIUS: Number, angle: number = 0): void

    adjust the call to this function in hand in the appropriate form

    then in DrawPolygon() instead of references to target just replace them with graphics this will draw on the contrary to the purpose of polygon graphics

    Note You can put calls Graphics.Clear and graphics.lineStlye early DrawPolygon() so

    We can then remove the clear and graphics.lineStyle calls in your main class

    hope that makes sense

  • lineStyle changing in a way

    quote from Adobe liveDocs:

    "You can call the lineStyle() method in the middle of a path to specify different styles for different sections of the path of design.".

    http://help.Adobe.com/en_US/AS3LCR/Flash_10.0/Flash/display/graphics.html#LineStyle ()

    I expect to do something like this: when you use "drawPath()", changing each order to have its own style of line.

    I can't find any information on how to do it. I'm either interpret that this evil or the method does not exist.

    Any help?

    Thank you.

    OK - well it may not change the line in the middle of a "single" stroke style-, but you can call graphics.lineStyle before you draw the * line of next segment - for example:

    graphics.lineStyle (0x000000);

    graphics.lineTo (100,100);

    graphics.lineStyle (0xFF0000);

    graphics.lineTo (200,200);

    throw it in the first image of a Virgin doc to see the effect

Maybe you are looking for

  • email hacked

    It seems that my iCould emails were hacked.  I received the following message is displayed: Cannot display the full e-mail.You can view it when you press here Mac error number: 6114948 (kills Aug 2 20:34:06 2016) When I opened the link a screen sayin

  • WINDOWS 7 blue screens and boots then black screen several times through the day! View all different types of error messages. BORING

    Well, I have to tell you my story that I was happy that I bought a "new" (DELL) C.P. and 64 bit vista pre-installed and that he had not. and had some problems with my new! Dell xps 9000 from the GET go > but I learned that I was eligible for a free w

  • grayscale grid color changing

    Hello I need to make this simulation probe network nodes of energy levels. As the energy of node decreases its corresponding place on the grid changes color. I would like to draw each node on a grid defined by the values X and Y of the node. I want a

  • Record blackBerry Smartphones problem

    On my screen, I made a folder to put all the shopping icons, I took the icons and moved them to the folder but now when I open the file nothing in it.  It shows nothing at all.  I only got the blackberry curve for 2 weeks and I did not understand thi

  • BlackBerry Smartphones Facebook for BlackBerry notifications

    With the version is latest Facebook for BlackBerry, possible that I can delete notifications of my camera without deleting messages on my facebook account?  Previous versions of the application allowed this. Notifications will remain on the device in