Removing anti-aliasing on shaps (particularly line tool)

Hi all,   I am new on the forum
I searching around for an option to disable anti-aliasing on the Shape tools.  When I draw a straight horisontal line with Weight set to 1px it draws a 2 pixel high line with the second line being partly transparent
Is there any way i can prevent this  or  what would be the best substitute to draw straight lines for web deisgn ?
Regards
Thomas

Select the line tool.
On the options bar, select the Fill Pixels mode. (third button from left).
On the last option on the options bar, turn off "anti-alias".
It sounds like you were creating shape layers, which don't have an option to turn off anti-aliasing.

Similar Messages

  • 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

  • LineBreakMeasurer with anti-aliased text

    Hello,
    I am developing an application, which needs to render anti-aliased text. The application uses LineBreakMeasurer for text layout. Without anti-aliasing, LineBreakMeasurer works perfectly. However, when I turn anti-aliasing on, the text lines returned by LineBreakMeasurer.nextLayout() are too long (that is, longer than the specified wrapping width).
    For example, if I call
    TextLayout layout = measurer.nextLayout(92.0);
    then
    layout.getAdvance()
    might return 101.0.
    Has anybody been able to make LineBreakMeasurer to work with anti-aliased text?
    Thanks,
    -Tero

    My english is not so good, I hope this help to you.
    import javax.swing.*;
    import java.awt.*;
    import java.awt.font.*;
    import java.awt.event.*;
    import java.text.*;
    public class ParagraphLayout extends JFrame{
      public static void main(String[] args) {
        JFrame f = new ParagraphLayout("ParagraphLayout");
        f.getContentPane().add(new Test());
        f.setVisible(true);
      public ParagraphLayout(String title) {
        super(title);
        createUI();
      protected void createUI() {
        setSize(500, 400);
        center();
        addWindowListener(new WindowAdapter() {
          public void windowClosing(WindowEvent e) {
            dispose();
            System.exit(0);
      public void center() {
        Dimension screenSize = Toolkit.getDefaultToolkit().getScreenSize();
        Dimension frameSize = getSize();
        int x = (screenSize.width - frameSize.width) / 2;
        int y = (screenSize.height - frameSize.height) / 2;
        setLocation(x, y);
    class Test extends JPanel{
           public Test(){
                super();
          public void update(Graphics g){
               paintComponent(g);
          public void paintComponent(Graphics g) {
            Graphics2D g2 = (Graphics2D)g;
            g2.setRenderingHint(RenderingHints.KEY_ANTIALIASING,
                RenderingHints.VALUE_ANTIALIAS_ON);
            // From _One Hundred Years of Solitude_ by Gabriel Garcia Marquez.
            String s = "Jos\u00e9 Arcadio Buend\u00eda spent the long months " +
               "of the rainy season shut up in a small room that he " +
               "had built in the rear of the house so that no one " +
               "would disturb his experiments. Having completely abandoned " +
               "his domestic obligations, he spent entire nights in the " +
               "courtyard watching the course of the stars and he almost " +
               "contracted sunstroke from trying to establish an exact method " +
               "to ascertain noon. When he became an expert in the use and " +
               "manipulation of his instruments, he conceived a notion of " +
               "space that allowed him to navigate across unknown seas, " +
               "to visit uninhabited territories, and to establish " +
               "relations with splendid beings without having to leave " +
               "his study. That was the period in which he acquired the habit " +
               "of talking to himself, of walking through the house without " +
               "paying attention to anyone...";
            Font font = new Font("Serif", Font.PLAIN, 24);
            AttributedString as = new AttributedString(s);
            as.addAttribute(TextAttribute.FONT, font);
            AttributedCharacterIterator aci = as.getIterator();
            FontRenderContext frc = g2.getFontRenderContext();
            LineBreakMeasurer lbm = new LineBreakMeasurer(aci, frc);
            Insets insets = getInsets();
            float wrappingWidth = getSize().width - insets.left - insets.right;
            float x = insets.left;
            float y = insets.top;
            while (lbm.getPosition() < aci.getEndIndex()) {
              TextLayout textLayout = lbm.nextLayout(wrappingWidth);
              y += textLayout.getAscent();
              textLayout.draw(g2, x, y);
              y += textLayout.getDescent() + textLayout.getLeading();
              x = insets.left;
    }

  • Paths being anti-aliased

    Hello,
    I've got a project with a lot of artwork in paths.  It was created in illustrator run through catalyst.  The artwork was all fine until I added some RichText on the screen next to the art in Flash Builder.  Now the art is all anti-aliasing making the fine lines look very fuzzy.  Can anyone tell me how to turn anti-aliasing off for the entire project?  I've confirmed that its the RichText that is doing it because if I comment it out it goes back to aliased lines in all the paths.
    Thanks for any help,
    Paul

    Check out the section "Anti-Aliased Text' toward the bottom of this article:
    Intermediate Images
    http://java.sun.com/developer/technicalArticles/Media/intimages/

  • [CS5][Save for Web][Anti-aliasing] Fine lines in exported PSD with adjustment layers

    Hello,
    You can reproduce the bug this way:
    - link a PSD with a adjustment (Levels, Brightness/Contrast) layer in your AI file
    - Save for Web, with AA for Art (not text) selected
    In the exported image there will be artefacts, white lines usually.
    Flattening the PSD or deleting the adjustment layers will solve the problem and anti-aliasing will be applied correctly.
    I used CMYK/RGB settings, FOGRA39/Adobe RGB 1998 for all the files involved.

    Hi,
    I am experiencing this same problem of pixelated gifs when I use the "save for web" dialog from Illustrator, but this solution has not worked for me. I have tried the trick of using type-optimized anti-aliasing, but it doesn't change the output at all. I've done this from within the "Image size" tab as well as through Effect>Rasterize>Options)Anti-aliasing: Type Optimized. My image is a logo made entirely from text, although for some of it I used "outline path", so I'm not sure if it still qualifies as text...I'm a newbie at this stuff, so the technical details are still quite opaque to me.
    Does anyone know of a solution to this that does not require me to add Photoshop to my workflow?
    I'm using Illustrator in CS5, version 15.0.2.
    Thanks in advance
    Jonathan

  • How can I turn off anti-aliasing on a per shape basis in Adobe Illustrator?

    I was wondering if there is or is a way for example to untick a setting so that I can turn off anti-aliasing for some shapes, and leave anti-aliasing on for other shapes?

    thank you that was really helpful, and the shape is still editable and movable, great! thank you!

  • I am using the pen tool to clipp an image. Sometimes when I apply the mask WITH NO FEATHER it still appears to be feathered? Does this have to do with Anti-aliasing

    I am using the pen tool to clipp an image. Sometimes when I apply the mask WITH NO FEATHER it still appears to be feathered? Does this have to do with Anti-aliasing?

  • Why Can I Only Make Black Shape Layers With the Line Tool?

    My question is this: How do I make an arrow as a shape layer that's other than black?
    Here's what I tried:
    1. Choose the Line Tool, and using the cog turn on the arrowhead at end feature, and set the weight.
    2. Drag a line on my image, which creates an arrow-shaped path. So far so good.
    3, Click the [Shape] button to make a shape layer from the path. Note that the arrow is black, even though my foreground color is white.
    4. Double click the shape layer icon and a color picker comes up. Change the color, and note that the arrow stays black.
    Seems like a bug:  You can have any color shape that you want, as long as it's black. 
    Here's the above sequence shown graphically:
    -Noel

    Noel Carboni wrote:
    Now I need to figure out where to turn that off by default. 
    OK, now I see the Fill and Stroke options - ONLY VISIBLE IN THE OPTIONS BAR WHEN TOOL MODE Shape IS SELECTED - that affect the operation of the [Shape] button.
    Personally, I really LIKE the concept of always making a Path, then doing with it what I want (e.g., make a Shape with the button).
    I'm not sure what I'd suggest about making the Fill and Stroke options available, but clearly the method of haivng them only show when making Shapes, and not when using the [Shape] button is a stumbling block even for folks who are familiar with the product.
    I would probably turn off the Stroke feature by default, though, then let people discover it.
    -Noel

  • CS5 bug rendering anti-aliased text in 'Save for web'

    Seems like there's a bit of a bug when using 'Save for web and devices' with thin weights of type in CS5 for Mac. Although thin type looks fine while working in Illustrator, as soon as you enter the 'Save for web' dialogue, it gets badly mangled. Looks like this issue has been present at least since CS4. It does not happen in Photoshop. It looks particularly bad for light text on a dark background.
    Some people may say "sure, Illustrator is not really meant for intensive bitmap work". However, with features like 'pixel preview' and 'snap to pixel', Illustrator has (generally) become a very viable tool for web design, and personally I much prefer it to Photoshop. It is also clear that Adobe intends it to be usable in this manner. So the anti-aliasing render bug is definitely a problem. Just surprised they didn't address it when CS5 was born.
    I put up some example images on http://www.thesheep.co.uk/2011/06/24/illustrator-save-for-web-anti-aliasing-problems/ to illustrate the problem.
    Does anyone have any clever work-arounds for this? It's a bit annoying to have to move stuff over to PS before exporting, but maybe that's what I have to do. Hopefully Adobe will address this soon.

    Hi,
    I am experiencing this same problem of pixelated gifs when I use the "save for web" dialog from Illustrator, but this solution has not worked for me. I have tried the trick of using type-optimized anti-aliasing, but it doesn't change the output at all. I've done this from within the "Image size" tab as well as through Effect>Rasterize>Options)Anti-aliasing: Type Optimized. My image is a logo made entirely from text, although for some of it I used "outline path", so I'm not sure if it still qualifies as text...I'm a newbie at this stuff, so the technical details are still quite opaque to me.
    Does anyone know of a solution to this that does not require me to add Photoshop to my workflow?
    I'm using Illustrator in CS5, version 15.0.2.
    Thanks in advance
    Jonathan

  • Problem in placing line tool position

    Hi, Can any one solve this problem.
    I have created script for line tool but it not running in particular place. I will explain in detail.
    Job Ms
    I/P: America is a [SL 10] country.
    Error in output: America is a country .................   (or)  ................. America is a country  (or)  America  ................. is a country (Rule is Placing somewere else i need correct position)
    Original output should be like this
    Error in output: America is a  ................. country
    I need a 10 mm underline instead of [SL 10]
    It should replace [SL 10] and put a 10 mm rule in that position.
    In my script rule is creating but the rule is placing some were else. Please solve this problem. Ihave created library also for [SL10]. 
    Here is my script coding
    app.findTextPreferences=null;
    app.changeTextPreferences=null;
    app.findChangeTextOptions.caseSensitive=false;
    app.findChangeTextOptions.includeHiddenLayers=true;
    app.findChangeTextOptions.includeLockedLayersForFind=true;
    app.findChangeTextOptions.includeLockedStoriesForFind=true;
    mydoc=app.activeDocument;
    app.findTextPreferences.findWhat="[SL 10]"
    myFounds=mydoc.findText();
    var myLib=app.libraries.item(0);
    var myassets=myLib.assets.item("SL10");
    for(i=0;i<myFounds.length;i++)
        myFound=myFounds[i];
        myFound.remove();
        myAnchorrule=myassets.placeAsset(myFound.insertionPoints[0])[0];
        //myAnchorrule.appliedObjectStyle=mydoc.objectStyles.item("SL");

    Hi csm_phil,
    Iam sorry last week iam out of station this script is working well but still some problem occurs.
    The problem is how to find SL20, Sl30, Sl40, Sl50 in same manuscript.
    mydoc=app.activeDocument;
    var myLib=app.libraries.item(0);
    var myassets=myLib.assets.item("SL10");
    app.findTextPreferences=null;
    app.changeTextPreferences=null;
    app.findChangeTextOptions.caseSensitive=false;
    app.findChangeTextOptions.includeHiddenLayers=true;
    app.findChangeTextOptions.includeLockedLayersForFind=true;
    app.findChangeTextOptions.includeLockedStoriesForFind=true;
    app.findTextPreferences.findWhat="[SL 10]";
    myFounds=mydoc.findText();
    for(i=myFounds.length-1;i>=0; i--)
        myFound=myFounds[i];
        myAnchorrule=myassets.placeAsset(myFound.insertionPoints[0])[0];
        myFound.remove();
    var myassets=myLib.assets.item("SL20");
    app.findTextPreferences=null;
    app.changeTextPreferences=null;
    app.findChangeTextOptions.caseSensitive=false;
    app.findChangeTextOptions.includeHiddenLayers=true;
    app.findChangeTextOptions.includeLockedLayersForFind=true;
    app.findChangeTextOptions.includeLockedStoriesForFind=true;
    app.findTextPreferences.findWhat="[SL 20]";
    myFounds=mydoc.findText();
    for(i=myFounds.length-1;i>=0; i--)
        myFound=myFounds[i];
        myAnchorrule=myassets.placeAsset(myFound.insertionPoints[0])[0];
        myFound.remove();
    var myLib=app.libraries.item(0);
    var myassets=myLib.assets.item("SL30");
    app.findTextPreferences=null;
    app.changeTextPreferences=null;
    app.findChangeTextOptions.caseSensitive=false;
    app.findChangeTextOptions.includeHiddenLayers=true;
    app.findChangeTextOptions.includeLockedLayersForFind=true;
    app.findChangeTextOptions.includeLockedStoriesForFind=true;
    app.findTextPreferences.findWhat="[SL 30]";
    myFounds=mydoc.findText();
    for(i=myFounds.length-1;i>=0; i--)
        myFound=myFounds[i];
        myAnchorrule=myassets.placeAsset(myFound.insertionPoints[0])[0];
        myFound.remove();
    This script is working for sl 10 only please check and confirm

  • Line Tool Makes 2 Lines?

    Hi,
    I am trying to draw a 1px line with the line tool.
    It is set on shape layers, no style and black color. If I zoom in to the max (3200 %) or less even, it shows as 2 lines - one greyish and one a lighter grey?
    Why is it not just a single black line?
    Tony

    Sorry TB,
    I was wrong.
    You want to use the line tool on a shape layer. There is the anti-alias checkbox not available.
    You can get a crisp 1 px line only in the fill pixels mode like in Paulo's screenshot.
    Don't know why.
    miss_marple

  • Unwanted Anti-aliasing after export to PDF!?

    Dear comunity,
    First of all let me say, that i am relatively new to indesign,
    this is really driving me crazy: my boss gave me the task to renew our business cards (no new layout, just different names and addresses.) So i took the indesign file my predecessor made and switched the names and contact information. The indesign file contains three back sides for three different people, every one with their own QR-code.
    I made three new QR codes, deleted the old ones and brought the new ones in. (the codes were originally PNG, i put them in Photoshop and exported as PSD, since i heard, that i should use PSD files in ID instead of PNG or JPEG.)
    When exported to PDF, two of these QR codes are working just fine, the third one has the following problem: On the edges of the code, thin light gray lines appear, for my untrained eye, these look just like anti-aliasing. These do only appear in the exported PDF, not in Indesign itself, and only in one of the three QR-codes, though i created and imported them all the same way.
    I should probably mention, that i made the codes 50% transparent. I already did lots of research regarding that problem, and one person said, that this is a bug, which has been solved in ID CC 2014, so i updated my ID to that version, imported the corrupt PSD anew, still the same problem.
    What did i do wrong with this particular PSD file? Might there be a button or something, when i have the psd selected in iD, that toggles AA on and off for that particular file??
    I added two pictures. the 1st one is one of those, who don't make any problems, the second one is the one, that has the unwanted anti-aliasing (or whatever it is). I just made screenshots out of Acrobat, because this forum wouldn't let me upload The PDFs. As i said, they both come from the same ID file, exported the same way.
    Thanx in advance for all your kind help.
    Nigi

    Thank you Willi, one more question,
    You are saying, i down sampled with the wrong method. So what would be the right method? I just drag and dropped the file and placed using the placegun thingy.
    Just asking for future projects, this particular problem will be solved by the internal QR-editor, i'm sure.
    Boy that whole print-stuff is a whole new area for me, there's much to learn, so i am very grateful for people like you, who take their time to help a poor autodidact...
    Thanks

  • [need help] anti-aliasing problem

    i create new document in AI CS4 and drag my logo.png into the new document, when i resize the logo using selection tool, it will get jagged edge (no anti-aliasing). how to fix this problem?

    asafalyrayyan,
    A PNG is a raster image consisting of pixels. If you scale it up, the pixels get larger.
    You may try to soften thing a bit, better done in Photoshop.
    But if avaiable, you should get the original vector artwork, if any.
    Otherwise, the right thing to do, especially in connexion with artwork that may be needed in full quality at any size, is to recreate it with the appropriate tools, such as the Pen Tool and maybe tools for specific shapes such as the Rectangle/Ellipse group in the Toolbox ClickHover for the different tools to fly out.

  • Anti-aliasing not working on new transparent layers in CS5

    A problem has appeared in CS5 running on Lion where anti-aliasing isn't working on transparent layers.
    If I create a shape and select it with the magic wand on the background layer and then Edit>Stroke I get a smooth line.
    If I create a new transparent layer, create a shape, select with the magic wand and Edit>Stroke I get a jagged line.
    This is driving me crazy. I've reset the settings and tried everything I can think of. It never used to do this, what's going on?
    See image below (left - background layer, right - layer 1. same process on each)
    Thanks, Stu.

    If I create a new transparent layer, create a shape, select with the magic wand and Edit>Stroke I get a jagged line.
    What’s with the Magic Wand?
    If you create a Shape as Path you could »Load path as selection« or »Stroke path with brush« (see the bottom of the Paths Panel).
    Edit: And you could load the transparency of the Layer by command-clicking its icon in the Layers Panel.
    Or why not use the Layer Style Stroke?

  • Photoshop CC Text Anti-aliasing problem.

    Hey guys, not sure if anyone else has experienced this problem, but today I turned on my machine and starting layout out some type and noticed that it looked alot chunkier than before. I had my anti-aliasing set to Mac LCD, which is usually spot on, but this particular text field looked terrible. I opened an old document and sure enough, I was right, the same type of anti-aliasing looked vastly different, even when both of the typfaces were exactly the same. I've had others open the file on their machines and have gotten the same problem. Now every time I create a new text field, I get chunky, terrible looking anti-aliasing, no matter what font I'm using. The only way I can get good looking type is by copying and pasting from old files. I've included an example file of what I mean. On the left is Trade Gothic, and on the right is Trajan (just to show it's not any particular font). The top versions of the fonts look beautiful clean, and anti-aliased properly. The bottom versions look chunky and blurry. Any help would be much appreciated!
    Download the file here: http://cl.ly/3I2L2f163q3z

    Same problem here.
    This fixed it for me. Though, only temporarily:
    1. Select all layers of your PSD file.
    2. Select the type drop down > Anti-Aliasing > None
    3. Save your file
    4. Quit Photoshop
    5.  Re-open the file
    6. Select all layers of your PSD again
    7. Select the type drop down > Mac LCD (or desired aliasing)
    8. Save the file
    9. Continue working
    This worked the last few times I tried but it is not a permanent solution.
    I feel your pain

Maybe you are looking for

  • InDesign CS5 and Acrobat 8

    I am using ID 5 and Acrobat 8. My client marks up changes on a pdf for me to change the ID file. I used to be able to copy the text from the Acrobat file and simply paste it into the ID file. For some reason it wont do it. So I am having to type UGGG

  • Drawing document in Production Order

    Hi, My scenario is as follows - There is a drawing  number for each material produced in-house. So when we are making a production order (manually or thru MRP) for each in-house produced material, I want the drawing document to automatically appear i

  • Offline import option (mbox of the like)

    Some threads in this forum already discussed the missing export functionality of beehive. A major impediment for implementing a logical export seems to be that implementing this for the whole object model of beehive will be a considerable effort. But

  • Photo Sync with new iPhoto Library

    I created a new iPhoto-Library. This one is now set as "standard". But if i try to sync the photos from this new library to the iPhone, iTunes still shows the pictures from the old iPhoto-Library. How can I tell iTunes to use the new library?

  • Obtaining SAP User information from J2EE Application

    Hi All, I am using SAP NetWeaver Developer Studio to create a J2EE Application, which requires accessing user information from SAP coming from Windows Active Directory. My question is as follows; Is there a possibility in a J2EE application to use an