How Do I Draw An Angled Straight Line?

Hello,
I'm restoring an old B&W photo of my Grandmother walking in Atlanta in around 1932. I'm trying to make the power lines of the trolley cars as realistic as possible. Consequently, I'd like to be able to draw these power lines better than they appear in the photo - I've cloned them in and tried to enhance them from the way they are originally, but they are not as straight and authentic as I would like them to be.
Of course, I know how to draw a straight perpendicular or horizontal line, but is there also a way to draw them when they are at an angle?
Where are you, Buko and Lundberg02 - Hope you guys are doing ok.
Thanks for any help you can muster up.
Burtron

Scott,
I just did it! And to think that I went all that time trying to draw those lines as steady as I could - Wow, I thought that surely Adobe would have a way. I just waited too long to get around to asking.
What a difference this will make!
Also, in this same old photo is a building that was torn down long ago, I'm sure, but it's after working with it a while, and using the contrast to bring out the images on this building, I began to realize that the building had more and more images - I mean all over it - It's amazing - I don't think that anyone these days would go to all the trouble that this guy did - whoever he is - That's my next challenge - I need to find out who this architect was. I've done all kinds of searches on google, but to no avail. Going to contact the state archives.
Do you have any suggestions?
Thanks Again,
Burtron

Similar Messages

  • Quick Selection Draws Only a Straight Line

    I apparently have something set  incorrectly in PS CC 2014.  When I try to create a selection using Quick Selection I do not get a selection, I get only a line.  I have Options set to create a selection, not plus or minus.
    I have tried Quick Selection on PS CS6 and I get a selection, not a line.
    I have tried Quick Selection on PS CC 2014 on my laptop, and it works fine.
    Any Idea what I have set wrong?

    Increasing the brush size seems to have solved the problem.
    Perhaps I have the same bug on my system which my wife has.  Things get checked and turned on on her computer and she has no idea how they got checked. 
    Thanks. 
    Vince Heying

  • How to make a straight line of points in a curve in CS6

    In PSCS5 and earlier, I used to be able to make a straight line of points in a curve by placing 9 points on the straight line curve.  I did this by drawing a small straight line at the bottom of the curve using the pencil tool and then clicking the curve point icon.
    I can't seem to do this with CS6.  Any thoughts?
    Thanks,
    Matthew Kraus

    Did you not ask a similar question a while ago?
    http://forums.adobe.com/message/4524084#4524084

  • Straight line on semi-log graph

    hi, I'm trying to graph an array of 500 points on a semi-log graph. The line look right on the Linear Scale but it curves a little bit when I changed to Logarithmic scale. How can I make it a straight line on the logarithmic scale? please see attachment
    Attachments:
    graph.vi ‏53 KB

    There's nothing you can do short of changing the data--or the scaling of the x axis. What you're seeing is an effect of the y-axis scaling.
    Mike...
    Certified Professional Instructor
    Certified LabVIEW Architect
    LabVIEW Champion
    "... after all, He's not a tame lion..."
    Be thinking ahead and mark your dance card for NI Week 2015 now: TS 6139 - Object Oriented First Steps

  • How to draw only straight line instead of angled one??

    Dear friends,
    I saw a very good code posted by guru here(I think is camickr),
    But I tried to change it and I hope to draw only straight line instead of angled one, can you help how to do it??
    Thanks so much.
    import java.util.*;
    import java.awt.*;
    import java.awt.event.*;
    import javax.swing.*;
    import javax.swing.event.*;
    public class DrawingArea extends JPanel
         Vector angledLines;
         Point startPoint = null;
         Point endPoint = null;
         Graphics g;
         public DrawingArea()
              angledLines = new Vector();
              setPreferredSize(new Dimension(500,500));
              MyMouseListener ml = new MyMouseListener();
              addMouseListener(ml);
              addMouseMotionListener(ml);
              setBackground(Color.white);
         public void paintComponent(Graphics g)
              // automatically called when repaint
              super.paintComponent(g);
              g.setColor(Color.black);
              AngledLine line;
              if (startPoint != null && endPoint != null)
                   // draw the current dragged line
                   g.drawLine(startPoint.x, startPoint.y, endPoint.x,endPoint.y);
              for (Enumeration e = angledLines.elements(); e.hasMoreElements();)
                   // draw all the angled lines
                   line = (AngledLine)e.nextElement();
                   g.drawPolyline(line.xPoints, line.yPoints, line.n);
         class MyMouseListener extends MouseInputAdapter
              public void mousePressed(MouseEvent e)
                   if (SwingUtilities.isLeftMouseButton(e))
                        startPoint = e.getPoint();
              public void mouseReleased(MouseEvent e)
                   if (SwingUtilities.isLeftMouseButton(e))
                        if (startPoint != null)
                             AngledLine line = new AngledLine(startPoint, e.getPoint(), true);
                             angledLines.add(line);
                             startPoint = null;
                             repaint();
              public void mouseDragged(MouseEvent e)
                   if (SwingUtilities.isLeftMouseButton(e))
                        if (startPoint != null)
                             endPoint = e.getPoint();
                             repaint();
              public void mouseClicked( MouseEvent e )
                   if (g == null)
                        g = getGraphics();
                   g.drawRect(10,10,20,20);
         class AngledLine
              // inner class for angled lines
              public int[] xPoints, yPoints;
              public int n = 3;
              public AngledLine(Point startPoint, Point endPoint, boolean left)
                   xPoints = new int[n];
                   yPoints = new int[n];
                   xPoints[0] = startPoint.x;
                   xPoints[2] = endPoint.x;
                   yPoints[0] = startPoint.y;
                   yPoints[2] = endPoint.y;
                   if (left)
                        xPoints[1] = startPoint.x;
                        yPoints[1] = endPoint.y;
                   else
                        xPoints[1] = endPoint.x;
                        yPoints[1] = startPoint.y;
         public static void main(String[] args)
              JFrame frame = new JFrame("Test angled lines");
              frame.setDefaultCloseOperation( JFrame.EXIT_ON_CLOSE );
              DrawingArea d = new DrawingArea();
              frame.getContentPane().add( d );
              frame.pack();
              frame.setVisible(true);
    }

    Change the AngledLine class to store two points instead of 3 points (I would rename the class to be StraightLine). The code is much simpler because you just store the starting and ending points and you don't need to calculate the middle point.

  • Drawing Straight Line angled path with no wavy distortion when scaled

    Hi,
    I'm a beginner using AI CS5.5, and trying to add  straight lines to a drawing, using the line tool. They are angled about 30 degrees from horizontal, parallel to each other. Used 2pt and color for lines. Everything looks great in AI. When I export the drawing to PNG for insertion as an illustration into InDesign and scale down (45%) the drawing to fit the InDesign page, the once perfectly smooth and straight lines are wavy, almost zigzaggy, slightly distorted. Not a good result.
    Is there a better way to draw straight lines that are on an angle in the drawing so that they are perfectly smooth, and when scaled retain their smooth straight look?
    Any help appreciated.
    Regards,

    Hi,
    Thank you for this suggestion. I just tried this, placing the AI file directly into InDesign, but unfortunately, this looked even worse. The straight lines were even more jagged.
    In Illustrator, these same lines are perfectly straight and smooth. Not sure why it's so challenging to get them to stay straight and smooth after placing the drawing?
    Any suggestions?
    Regards,

  • How can i draw a straight line with a brush?

    i know the pencil tool can draw a straight line with anchor points. is there a setting for the pencil tool that can mimic a 30 point brush, low hardness (faded side to side) at about an 80 degree angle or is there a way to make a straight line with the brush tool using a mouse?
    i know this image is a bit blurry. what i want to do is replace the 2 white angled lines with the 30 point brush effect 230 pixels wide. the project on the left of the pic is a 2ft by 4ft canvas. any ideas? please help.

    Hello Mike, I wonder if you can help, no one else can. I asked this question on the forum in August Brush line fades on start with anchor points
    Only on Photoshop CC does this happen, drawing a diagonal line with shift key, instead of line starting dark & then fading out, it does the reverse, starts on nothing & then darkens towards anchor point. I am on trial versions & can't purchase until this is cleared up.

  • How to change draw dashed line with arrowhead (not straight)?

    Hi friends,
    The following code sinept draws an arrowed line from a given point to the other point. I want to know how it can changed to be dashed line as well? I would appreciate it if anybody help me for doing such changes.
    Thanks in advance,
    Reza_mp
    import javax.swing.*;
    import java.awt.*;
    import java.util.ArrayList;
    public class ArrowExample extends JFrame
        enum ArrowHead {
            HEIGHT(10), WIDTH(10);
            int n;
            ArrowHead(int n) {this.n = n;}
            public int value() {return n;}
        java.util.List<Arrow> arrows;
        BasicStroke stroke;
        private class Arrow {
            Point start;
            Point end;
            Polygon arrowHead;
            public Arrow(Point start, Point end) {
                this.start = start;
                this.end = end;
                double direction = Math.atan2(end.y - start.y, end.x - start.x);
                System.out.println(direction * 180/Math.PI);
                arrowHead = new Polygon();
                arrowHead.addPoint(0, 0);
                Point p1 = rotate(ArrowHead.WIDTH.value()/2, ArrowHead.HEIGHT.value(), direction);
                arrowHead.addPoint(p1.x, p1.y);
                Point p2 = rotate(-ArrowHead.WIDTH.value()/2, ArrowHead.HEIGHT.value(), direction);
                arrowHead.addPoint(p2.x, p2.y);
                arrowHead.addPoint(0, 0);
                arrowHead.translate(end.x, end.y);
            public Point rotate(int x, int y, double dir) {
                Point p = new Point();
                double r = Math.sqrt(x*x + y*y);
                double theta = Math.atan2(y, x);
                p.setLocation(Math.round(r*Math.cos(theta + dir + Math.PI/2)),
                              Math.round(r*Math.sin(theta + dir + Math.PI/2)));
                return p;
            public void draw(Graphics2D g) {
                g.drawLine(start.x, start.y, end.x, end.y);
                g.drawPolygon(arrowHead);
                g.fillPolygon(arrowHead);
        public ArrowExample() {
            super("Arrows");
            setDefaultCloseOperation(EXIT_ON_CLOSE);
            JPanel p = new JPanel() {
                protected void paintComponent(Graphics g) {
                    super.paintComponent(g);
                    Graphics2D g2d = (Graphics2D)g;
                    Stroke oldStroke = g2d.getStroke();
                    Color oldColor = g2d.getColor();
                    g2d.setStroke(stroke);
                    g2d.setColor(Color.black);
                    for (Arrow a : arrows)
                        a.draw(g2d);
                    g2d.setStroke(oldStroke);
                    g2d.setColor(oldColor);
            p.setBackground(Color.white);
            add(p, BorderLayout.CENTER);
            stroke = new BasicStroke(3);
            arrows = new ArrayList<Arrow>();
            arrows.add(new Arrow(new Point(10,10), new Point(100,100)));
            arrows.add(new Arrow(new Point(300,10), new Point(300,100)));
            arrows.add(new Arrow(new Point(450,450), new Point(400,100)));
            pack();
            setSize(500, 500);
        public static void main(String[] args) {
            setDefaultLookAndFeelDecorated(true);
            SwingUtilities.invokeLater(new Runnable() {
                public void run() {
                    new ArrowExample().setVisible(true);
    }

    Change the draw method as follows:
            public void draw(Graphics2D g) {
                Stroke s = g.getStroke();
                g.setStroke( new BasicStroke( 3.0f, BasicStroke.CAP_BUTT,
                   BasicStroke.JOIN_MITER, 1.0f, new float[] { 10.0f, 10.0f }, 0.0f ) );
                g.drawLine(start.x, start.y, end.x, end.y);
                g.setStroke( s );
                g.drawPolygon(arrowHead);
                g.fillPolygon(arrowHead);
            }

  • How do you draw freehand lines like in Paint,I can only draw straight lines

    Hi,
    Im tryin to develop a page where people can practice writing foreign characters using a mouse, I can currently only get straight lines from my code and was wondering what i would have to do for my lines to follow the movements of the user? As this would be more helpful!
    (is it some sort of FOR loop with a repaint() method occuring at a regular interval??)
    Yours Thankfully
    Raj

    was wondering what i would have to do for my lines to follow the movements of the userKeep track of the mouse x and y coordinates starting with mousePressed, continuing with every detected mouseMoved and terminating on mouseReleased. As a new set of coordinates is formed, redraw and repaint!
    ;o)
    V.V.

  • CS6 - Brush bug - randomly draws straight lines when sketching

    Hey everyone,
    I noticed this bug that occurs when I use the brush tool. Whenever I'm sketching in a small region, it randomly draws a straight line, as if I never lifted my pen. It's like when you hold the shift key to make a straight line, except I'm not holding the shift key. However, this only happens if I'm drawing semi-closely and/or if I'm drawing semi-fast (not that fast though. The lines will connect even though I lifted my pen. Does anyone know how to fix this problem? I updated my video card and tablet to its latest drivers but it hasn't fixed the issue.
    Specs:
    Windows 7 64 bit
    Wacom intuos5 tablet
    Nvidia GT 520 Graphics card
    Photoshop CS6
    Any help would be appreciated.

    Allso have this from time to time.
    The brush loses response and does little short straight lines here and there, it's a software glitch. I usually save my document when that happens, this usually snaps it out of it but a few times I had to wait then save again. I used to be able to just swap apps or click on layers or something but that doesn't work anymore.
    XP 32bit
    CS5 32bit
    I had the same promlem with CS4 trial, with my old Manhattan tablet and with my new Intuo's. I think it's a bug that comes in from time to time with panel, window focus changes. Or Id get up to fetch a cup of coffee and when I come back it's like that.

  • Drawing a straight line

    Hello,
    I haven't been able to draw a straight line in a JPanel as a separator. I mean, I have several other componentes in the JPanel and I would like to use straight lines as separators between some of the componentes. Besides drawing the line, how could I set its length?
    Thank you,
    Alfredo

    You could use a JPanel and set its border to a LineBorder (or whatever border you desire. Then set the preferred size of the panel and all that gets painted is the border.

  • Drawing straight lines

    Hi,
    in my programm I need to draw straight lines(I hope this is the correct translation for an infinit line). Is there a way of doing this?

    I just answered my own question.
    I checked Illustrator Preferences and under GENERAL: CONSTRAIN ANGLE, mine was set to 0.19 degrees (for reasons unknown).
    I changed it to zero and Voila! Who'd have thought this would alter the whole drawing surface?
    All I had to do was ask others in order to figure it out myself! Hope this helps anybody else having this bizarre problem.
    Vic.

  • Drawing small, short curves in Photoshop draws straight line between start and end points

    I recently installed Windows 8 Professional, Photoshop and the latest Wacom Bamboo tablet drivers and have been experiencing this issue. I've turned off windows flicks and ink. This only happens in Photoshop with the brush tool and I can't seem to find a setting that this corresponds to.
    Basically, when I draw small, short curves (particularly letters like 'c' and 'h'), when I lift up my pen, Photoshop automatically connects the end and start points together with a straight line ('c' almost becomes 'o' or 'a'). I'm not holding the shift or any modifier keys. I've tried googling this issue, but I have no idea how to phrase it properly to get any results.
    Here's an image of what I'm talking about (the top was drawn with the pencil tool, the bottom with the brush tool which demonstrates the issue. I've highlighted the start and end points with red dots):
    ANy ideas? :/

    Is caps lock on?

  • Illustrator drawing straight lines crooked

    All straight lines in Illustrator appear crooked on my screen. This is hard to explain. I've been using AI since 1991 and have never seen this problem, which started happening out of the blue a few months ago, even though I have not changed anything on my system or setup. This problem doesn't happen in any other programs, including InDesign.
    Examples:
    Use the box tool to draw a box. The lines should be straight, but they are crooked. You know when you use the pen tool and draw a line without holding the Shift key, and the line is jagged where it isn't straight? Well, that's what my lines look like when they are supposed to be straight, like from a box.
    The lines are also crooked when I draw with the pen tool using the Shift key to constrain.
    Even the document frame is crooked. I took a screen shot of an example. Please see it at this link:
    http://www.theheadbone.com/crooked.html
    THANK YOU for any help anybody can offer!
    Victoria
    Mac OSX 10.5.6
    AI CS3. 13.02
    Using MacBook Pro with Apple Cinema Display 20"

    I just answered my own question.
    I checked Illustrator Preferences and under GENERAL: CONSTRAIN ANGLE, mine was set to 0.19 degrees (for reasons unknown).
    I changed it to zero and Voila! Who'd have thought this would alter the whole drawing surface?
    All I had to do was ask others in order to figure it out myself! Hope this helps anybody else having this bizarre problem.
    Vic.

  • I can't draw straight lines for fill-in-the-blank on my tests and worksheets. The "draw it yourself choice makes big fat lines and takes a lot of manipulation. Do I have to draw them myself with a pen and a ruler?

    I can't draw straight lines for fill-in-the-blank on tests and worksheets. The draw-it-yourself ooption gives me thick lines and is time-consuming. So, after all these years, do I have to go back to using a ruler and a pen?

    In Pages v5.0.1, the straight lines are already drawn for you in the Shape Tool. Before we go there, select Menu > View > Show Ruler.
    When you click on Shape in the Pages toolbar, the top left line is straight. Click it. It will drop into your document in a 45 degree angle. Grab the lower left selection grip and drag it up and to the right to position the horizontal line in the length of your choice. Use the Format: Style tab to manage the stroke weight. You can also choose Menu > Edit > Duplicate Selection (command+D) as a productivity tool.
    If you move from the Format: Style tab to the Arrange tab, you can compare the start and end points with where you want the line positioned on the ruler. Once you have it positioned, notice the Lock button, also on the Format: Arrange tab.

Maybe you are looking for