Drawing a rectangle

I want to draw a rectangle - not a filled rectangle, I can do that but say a rectangle about 5 pixels wide that I can then drag to resize and use like a frame. The pre-defined shapes increase their line thickness as you make them bigger which is not what I want.
I could of course draw an outer rectangle in colour and then a smaller white one inside to simulate the effect I want but I'm using transparency so I don't want a filled white area.
Please tell me I've missed something simple!

File>new> blank file
Access rectangular marquee tool. In the tool's option bar, one can establish a fized size
Edit>stroke. The width of the stroke can be configured in pixels.
Any intervening color can be removed by selecting with magic wand tool

Similar Messages

  • Photoshop CC: When I'm trying to draw a rectangle I can't fill it or create a stoke because there is a message telling me; "Could not complete your request because of a program error. What can I do?

    Photoshop CC: When I'm trying to draw a rectangle I can't fill it or create a stoke because there is a message telling me; "Could not complete your request because of a program error. What can I do?

    It is a mute point now. PSE12 finally failed to the point it locked up the MAC. I had to restore the MAC OS from backup to a point before the PSE12 update.
    The MAC now operates correctly and so does PSE12. I don't think I'll be updating PSE any time soon.

  • Can you define a specific size of a Drawing Markup rectangle?

    Hi all,
    I am using Acrobat X and have been asked to find an answer to a 'problem' someone is having.
    If you have a site plan of one's property and they submit it to me for comment (as a pdf file) can I draw a box to a specific size? Say I set the 'scale ratio' to what the drawing scale is, I go to 'comments' and from the 'Drawing Markups' pane I choose 'draw rectangle; square', I then draw a rectangle to represent a shed of a specific size. I can dimension how far the rectangle/shed is to be from the property lines and I can dimension the rectangle/shed but I have to play with stretching it to get it to my desired size based on the scale I set.
    My question; is there anyway, when I am drawing the box, to either specify an x by y size or see the lenghts of their sides once I pick a corner and start to drag the box to the other corner?
    If not, would there be a java script that could accomplish this task?
    Any help would be appreciated.
    Thanks in advance.
    Paul

    Thanks Sabian, I understand that Acrobat is not a vector drawing application and I have been using all those programs (illustrator, AutoCAD, CorelDRAW etc.) for the past 20+ years. It wouldn't seem too much to ask considering that I can set a scale to my page (in Acrobat) and I can get Acrobat to give me a dimension from point A to point B based on that said scale, so why couldn't I expect to put a rectangle markup based on that same scale?
    As for the right tool? We are a municipality that is trying to make it easier for the public to submit applications online. Those submissions are in the format of a PDF because it is unrealistic to assume the everyone in the public has access to or can afford a program like AutoCAD or illustrator. Likewise it is too COSTLY to have everyone in the city have say 'AutoCAD' or even 'illustrator' to view the application documents to markup and send back.
    I believe  In 1991, Adobe Systems co-founder John Warnock outlined a system called "Camelot"[3] that evolved into PDF (from Wikipedia) and it was a way to have an independent viewing format regardless of what software application created it. I truly believe that Acrobat for what it's initial intent was that it should incorporate some of these features as it only makes sense in an evolutionary sense. Not to be a 'drawing package' but in it's markup/comments palette to expand on them.
    So keep your comments to 'no at this time acrobat does not allow this type of functionality but who knows in the future' and don't treat me as though I don't know anything about anything. In my decades of using these applications I have seen them evolve to include more functions and do more then when the product was originally released.
    I will now go on and recommend that they seriously look at Bluebeam Revu as it is not only cheaper but it has a ton more functionality specifically designed for the needs as listed above working with PDF's (and bitmap images to boot). I was just wanting to cover all bases and give all programs a fair look.
    Thanks again for your intuitive insight.
    Paul

  • How to draw a rectangle with rounded corners?

    Hi,
    I'm trying to draw a rectangle in a custom annotation and my appearance stream looks like:
    1 1 98 98 re 0.5 w 1 j 0 0 0 RG S
    The re-operator draws the rectangle an the j-operator along with the parameter 1 sets the join style to round.
    It does make the corners very slightly rounded, but it's only visible when setting the zoom level 200% and beyond.
    Do any of you know how to make the corners more rounded for the rectangle?

    I thought so
    So Cubic Bézier curves all the way.
    Could you help me with it?

  • Draw a rectangle on an image in an applet

    Hello
    I have an applet that has 3 buttons. Each of them creates an image, which is displayed on the screen. Now, I want to draw a rectangle on these images. Since I already have a paint method for displaying the images correctly, I would need a second paint method for the rectangle. (I can't put everything in the same paint() method, because I have an horrible resukt)
    Does anyone have an idea of a method that would be able to replace a paint method?
    Any help would be appreciated
    Thanks
    Philippe

    Have you thought about using one of your button to get the action done? You could use the Graphics method to create your object rectangle.
    Don't know if it would work but seems like a good idea to try.

  • Draw a rectangle outline with a transparent fill

    I am newbie using Elements 10.
    How do I draw a rectangle that only displays the stroke.  That is, it has a transparent fill.
    Your help would be much appreciated.
    Thanking you in anticipation.
    Roger

    On the options bar of the rectangular marquee tool, select "fixed size" and enter equal w & h values to suit.. That should give you a precise square configuration, outlined by the stroke
    Enter text on a separate layer
    Use the line tool to connect the square boxes. The line tool allows one to use arrow-heads.
    If you are still stuck, please post a representative example for additional guidance.

  • Can we draw a RECTANGLE of  1.5 (fractional ) height ??

    hi ,
    I am designing an GUI for scollbar for list elements ( may vary from 1- 2000 elements ) .For a better designing option , i want to draw a rectangle of fractional hieght ( say 1.5 ).
    can anyone tell me, is it possible to draw such a rectangle .

    read the Graphics javadoc page and you will have your answer

  • Can we draw a RECTANGLE of  1.5 (fractional ) height  in J2ME  ???

    hi ,
    I am designing an GUI for scollbar for list elements ( may vary from 1- 2000 elements ) .For a better designing option , i want to draw a rectangle of fractional hieght ( say 1.5 ).
    can anyone tell me, is it possible to draw such a rectangle .

    http://developers.sun.com/techtopics/mobility/midp/articles/s2dvg/index.html

  • Want to draw some rectangles inside a swing panel object

    HI,
    I want to draw some rectangles inside one JPanel object in swing. The JPanel object should also hold some buttons, labels, etc.. I can add simple buttons, label etc. easily to the panel object but how do I add graphics (like lines, rectangles) to it ??
    an immediate response would be highly appreciated!!

    I am not sure why you are talking about the rectangle.
    To repeat I fill in a bit of code (subject to compiler errors since I Do not have a machine where I can compile or test on at the moment):
      private class ColourCube extends JPanel 
         // The size of each rectangle with colour
         private static final int ROWS = 10;
         private static final int COLS = 10;
         // To store current selection
         private int selectedIndex[] = null;
         public ColourCube()
             addMouseListener( new MouseAdapter() {
                public void mouseReleased(MouseEvent me)
                   // Find the rectangle index by dividing
                   // x and y positions then set selectedIndex
                   // unless it is the same positions as previous
                   // then set it to be null
                   fireActionEvent();
         // needed listener methods for firing events
         public void addActionListener( ActionListener al)
            // add to list
         // remove etc....
         protected void fireActionEvent()
            // Construct action event
            // call actionPerformed( ae ) on all listeners
         public void paintComponent(Graphics g)
             // Depending on size and height of this component
             // calculate out colWidth and rowHeight
             // Loop and paint the rectangles in their different colours
             for(int i = 0; i < ROWS; i++)
                for(int j = 0; j < COLS; j++)
                   // set the colour to the graphics object here from the list of colours available
                   g.setColor( ... );
                   // Added a little bit extra to have some space between
                   // each rectangle
                   g.fillRect( i * rowHeight + 1, j * colWidth + 1, colWidth - 2, rowHeight - 2 );
             if( selectedIndex != null )
                // We have a selection, lets paint the selection
                g.setColor( Color.white ); // Selection colour
                // The index contains the row in index 0 and the col in index 1
                g.drawRect( selectedIndex[0] * rowHeight, selectedIndex[1] * colWidth, colWidth, rowHeight );
      }Lacking from the above component is lacking stuff like preferedSize.
    Now, all you do is instantiate the ColourChooser, add it to your applet iether by drag and drop if you have an WYSIWYG editor, or by hand if you are so inclined.
    Voila! A composite component appears, doing the stuff it needs to be doing.
    Regards,
    Peter Norell

  • HELP! Handles missing when I draw a rectangle?!

    HELP! The handles are missing when I draw a rectangle with the rectangle tool. So I can't transform it Both Bounding box and edges are set to be visible, so it's not that! Is it a bug in the latest version? I have never had trouble with that before!

    camras,
    I am afraid you have come across the Live Rectangle bug which is limited to the MAC versions starting with 10.7 and 10.8, but not 10.9 (Mavericks) or 10.10 (Yosemite). Hopefully, the bug will be fixed soon.
    So a switch to Mavericks or Yosemite with a reinstallation might be the way to solve it here and now.
    To get round it in each case, it is possible to Expand the Live Rectangles to get normal old fashioned rectangles, or to Pathfinder>Unite, or to use the Scale Tool or the Free Transform Tool.
    A more permanent way round that is to create normal old fashioned rectangles, after running the free script created by Pawel, see this thread with download link:
    https://forums.adobe.com/thread/1587587

  • Draw a rectangle from a flex app

    Hello,
    GRAND CHALLENGE (should be "hello world" that anyone should
    easily find):
    1) - a flex app with a button
    2) - when clicked the button draw the rectangle
    PROPOSED NON WORKING SOLUTION:
    draw.mxml:
    <?xml version="1.0" encoding="utf-8"?>
    <mx:Application xmlns:mx="
    http://www.adobe.com/2006/mxml"
    layout="absolute">
    <mx:Script>import DrawApp;</mx:Script>
    <mx:Script>
    <![CDATA[
    function drawNow():void{
    var myRectangle:DrawApp = new DrawApp();
    myCanvas.addChild(myRectangle.returnRectangle());
    ]]>
    </mx:Script>
    <mx:Canvas width="100%" height="100%"
    id="myCanvas"></mx:Canvas>
    <mx:Button label="draw"
    click="drawNow()"></mx:Button>
    </mx:Application>
    DrawApp.as:
    // ActionScript file
    package {
    import flash.display.*;
    class DrawApp extends Sprite
    public function DrawApp()
    //don't use the constructor anymore since it won't return
    the rectangle
    public function returnRectangle():Shape
    var rectAndCircle:Shape=new Shape();
    rectAndCircle.graphics.lineStyle(1);
    rectAndCircle.graphics.beginFill(0x0000FF,1);
    rectAndCircle.graphics.drawRect(125,0,550,575);
    rectAndCircle.graphics.endFill();
    return rectAndCircle;
    }//class
    }//package
    I've got an error "1034" (BTW as a bonus if anyone know how i
    can avoid to have the localized AS3 error messages so I can paste
    full error messages in English)
    CHALLENGE:
    Can someone show me how to make this wok before Silverlight2
    Beta get out?
    Thanks from francois who's mad trying to solve this "should
    be obvious hello world" for too long and who also discovered
    lately:
    - the lack of threads in AS3
    - the insane security policy around Flash Player (must
    install a proxy to access a public API...)
    - etc.
    Help please Oo

    Ok found the solution: needed to change the "Shape" object by
    a "UIComponent" object (don't know why).

  • I want to draw rounded rectangle with dashed border

    Hello,
    I am working on flex 4.5 air 2.7 . And i want to draw rounded rectangle which has dashed border or solid border as per user's selection. Also rectangle can be rounded or simple. I am able to draw simple rectangle with dashed border. I want a solution for rounded rectangle.
    If anyone have any idea then post as soon as possible..
    Thanks
    Dhwani

    Good day!
    Could you please post a screenshot with the Layers Panel visible?
    Is the iten by any chance a Shape Layer and therefore does have a Vector Mask?
    Regards,
    Pfaffenbichler

  • Drawing a rectangle using a mouse

    Need a simple application that demostrates the use of the mouse on an application window. All that I require is that a user can draw a rectangle by dragging the mouse on the application window. The upper left coordinate should be the location where the user presses the mouse button and the lower right should be where the user releases the mouse button. Should also display the area of the rectangle in a JLabel in the SOUTH region of a BorderLayout.
    Thanks

    How is this:
    import java.awt.event.*;  
    import java.awt.*;
    import javax.swing.*;
    public class DrawR extends JFrame
         JLabel label = new JLabel();
    public DrawR()
         addWindowListener(new WindowAdapter()
        {     public void windowClosing(WindowEvent ev)
              {     dispose();
                   System.exit(0);
         setBounds(50,50,450,400);
         getContentPane().setLayout(new BorderLayout());
         Draw draw = new Draw();     
         getContentPane().add("Center",draw);
         getContentPane().add("South",label);
        setVisible(true);     
    public class Draw extends JPanel
         Rectangle r = null;
    public Draw()
         addMouseListener(new MouseAdapter()     
         {     public void mousePressed(MouseEvent m)
                    r = new Rectangle(m.getX(),m.getY(),1,1);
              public void mouseReleased(MouseEvent m)
         addMouseMotionListener(new MouseMotionAdapter()          
         {     public void mouseDragged(MouseEvent m)
                   r.width  = m.getX() - r.x;
                   r.height = m.getY() - r.y;
                   repaint();
                   label.setText("   "+r);
    public void paintComponent(Graphics g)
         super.paintComponent(g);
         if (r != null) ((Graphics2D)g).draw(r);
    public static void main(String[] args )
         new DrawR();
    Noah
    import java.awt.event.*;
    import java.awt.*;
    import javax.swing.*;
    public class DrawR extends JFrame
         JLabel label = new JLabel();
    public DrawR()
         addWindowListener(new WindowAdapter()
    {     public void windowClosing(WindowEvent ev)
              {     dispose();
                   System.exit(0);
         setBounds(50,50,450,400);
         getContentPane().setLayout(new BorderLayout());
         Draw draw = new Draw();     
         getContentPane().add("Center",draw);
         getContentPane().add("South",label);
    setVisible(true);     
    public class Draw extends JPanel
         Rectangle r = null;
    public Draw()
         addMouseListener(new MouseAdapter()     
         {     public void mousePressed(MouseEvent m)
                   r = new Rectangle(m.getX(),m.getY(),1,1);
              public void mouseReleased(MouseEvent m)
         addMouseMotionListener(new MouseMotionAdapter()          
         {     public void mouseDragged(MouseEvent m)
                   r.width = m.getX() - r.x;
                   r.height = m.getY() - r.y;
                   repaint();
                   label.setText(" "+r);
    public void paintComponent(Graphics g)
         super.paintComponent(g);
         if (r != null) ((Graphics2D)g).draw(r);
    public static void main(String[] args )
         new DrawR();
    }

  • Drawing a rectangle...corectly!

    If i try to draw a rectangle at the point 0,0 if works fine, but when i start moving the point around, the right side of the rectangle disapears for no apparent reason. so it looks like this
    |
    |
    |
    |____________________
    a three sided box. why is it doing this? thank you so much for any help, this is really frustrating me!

    My only guess is that you are drawing this rectanlge inside a component which is just big enough to fit the rectablge, but as soon as you move the position of the rectangle it's getting clipped off the edge of the component.

  • How do you draw a rectangle in JavaScript?

    I am developing an ASP.NET application. There is an image on one of my pages. Users need to be able to draw a rectangle on which part of the image they want to zoom-in to. Basically, when the user clicks on the image, that XY location will be one corner of the rectangle. As the user moves the mouse over the image, I want to be able to show the rectangle. Once they let go of the mouse, I need to send those coordinates to the server and perform the zoom operation.
    Does anyone have code that does this?

    How, exactly, did you decide that a forum called "New
    To Java Technology" was the place to ask this
    question??Well he is clearly new to java technology since he dosn't realize that java and javascript are two completley different things.

Maybe you are looking for