Illustrator rectangle tool only drawing tilted rectangles and squares?

Help! I opened Illustrator this morning and out of no where the rectangle tool went rogue.
I have never had this issue and do not see a problem with the view (i.e. perspective grid).
What could have happened? How do i fix this?
Please and thank you!

cattle,
Edit>Preferences>General>Constrain Angle should be 0.

Similar Messages

  • How do I get the rectangle tool to draw in the color I've selected?

    I'm quite new to indesign, so bear with me.
    I've selected a color with the eyedropper tool, and once I am about to draw using the rectangle tool, the color switches to grayscale. How do I change this?
    Thanks

    You've gotten the answer but may I suggest a couple of references?
    Sandee Cohen's Visual Quick Start Guide is the best $18 you'll ever spend: http://amzn.to/IfpRN3
    There are some excellent video courses on Lynda.com. This link will get you a one week free trial: http://bit.ly/fcGpiI
    Bob

  • How to use the Rectangle class to draw an image and center it in a JPanel

    I sent an earlier post on how to center an image in a JPanel using the Rectangle class. I was asked to send an executable code which will show the malfunction. The code below is an executable code and a small part of a very big project. To simplifiy things, it is just a JFrame and a JPanel with an open dialog. Once executed the JFrame and the FileDialog will open. You can then navigate to a .gif or a .jpg picture and open it. What I want is for the picture to be centered in the middle of the JPanel and not the upper left corner. It is also important to stress that, I am usinig the Rectangle class to draw the Image. The region of interest is where the rectangle is created. In the constructor of the CenterRect class, I initialize the Rectangle class. Then I use paintComponent in the CenterRect class to draw the Image. The other classes are just support classes. The MyImage class is an extended image class which also has a draw() method. Any assistance in getting the Rectangle to show at the center of the JPanel without affecting the size and shape of the image will be greatly appreciated.
    I have divided the code into three parts. They are all supposed to be on one file in order to execute.
    import java.awt.*;
    import java.awt.image.*;
    import javax.swing.*;
    public class CenterRect extends JPanel {
        public static Rectangle srcRect;
        Insets insets = null;
        Image image;
        MyImage imp;
        private double magnification;
        private int dstWidth, dstHeight;
        public CenterRect(MyImage imp){
            insets = getInsets();
            this.imp = imp;
            int width = imp.getWidth();
            int height = imp.getHeight();
            ImagePanel.init();
            srcRect = new Rectangle(0,0, width, height);
            srcRect.setLocation(0,0);
            setDrawingSize(width, height);
            magnification = 1.0;
        public void setDrawingSize(int width, int height) {
            dstWidth = width;
            dstHeight = height;
            setSize(dstWidth, dstHeight);
        public void paintComponent(Graphics g) {
            Image img = imp.getImage();
         try {
                if (img!=null)
                    g.drawImage(img,0,0, (int)(srcRect.width*magnification), (int)(srcRect.height*magnification),
              srcRect.x, srcRect.y, srcRect.x+srcRect.width, srcRect.y+srcRect.height, null);
            catch(OutOfMemoryError e) {e.printStackTrace();}
        public static void main(String args[]) {
            java.awt.EventQueue.invokeLater(new Runnable() {
                public void run() {
                    new Opener().openImage();
    class Opener{
        private String dir;
        private String name;
        private static String defaultDirectory;
        JFrame parent;
        public Opener() {
            initComponents();
         public void initComponents(){
            parent = new JFrame();
            parent.setContentPane(ImagePanel.panel);
            parent.setDefaultCloseOperation( JFrame.EXIT_ON_CLOSE );
            parent.setExtendedState(JFrame.MAXIMIZED_BOTH);
            parent.setVisible(true);
        public void openDialog(String title, String path){
            if (path==null || path.equals("")) {
                FileDialog fd = new FileDialog(parent, title);
                defaultDirectory = "dir.image";
                if (defaultDirectory!=null)
                    fd.setDirectory(defaultDirectory);
                fd.setVisible(true);
                name = fd.getFile();
                if (name!=null) {
                    dir = fd.getDirectory();
                    defaultDirectory = dir;
                fd.dispose();
                if (parent==null)
                    return;
            } else {
                int i = path.lastIndexOf('/');
                if (i==-1)
                    i = path.lastIndexOf('\\');
                if (i>0) {
                    dir = path.substring(0, i+1);
                    name = path.substring(i+1);
                } else {
                    dir = "";
                    name = path;
        public MyImage openImage(String directory, String name) {
            MyImage imp = openJpegOrGif(dir, name);
            return imp;
        public void openImage() {
            openDialog("Open...", "");
            String directory = dir;
            String name = this.name;
            if (name==null)
                return;
            MyImage imp = openImage(directory, name);
            if (imp!=null) imp.show();
        MyImage openJpegOrGif(String dir, String name) {
                MyImage imp = null;
                Image img = Toolkit.getDefaultToolkit().getImage(dir+name);
                if (img!=null) {
                    imp = new MyImage(name, img);
                    FileInfo fi = new FileInfo();
                    fi.fileFormat = fi.GIF_OR_JPG;
                    fi.fileName = name;
                    fi.directory = dir;
                    imp.setFileInfo(fi);
                return imp;
    }

    This is the second part. It is a continuation of the first part. They are all supposed to be on one file.
    class MyImage implements ImageObserver{
        private int imageUpdateY, imageUpdateW,width,height;
        private boolean imageLoaded;
        private static int currentID = -1;
        private int ID;
        private static Component comp;
        protected ImageProcessor ip;
        private String title;
        protected Image img;
        private static int xbase = -1;
        private static int ybase,xloc,yloc;
        private static int count = 0;
        private static final int XINC = 8;
        private static final int YINC = 12;
        private int originalScale = 1;
        private FileInfo fileInfo;
        ImagePanel win;
        /** Constructs an ImagePlus from an AWT Image. The first argument
         * will be used as the title of the window that displays the image. */
        public MyImage(String title, Image img) {
            this.title = title;
             ID = --currentID;
            if (img!=null)
                setImage(img);
        public boolean imageUpdate(Image img, int flags, int x, int y, int w, int h) {
             imageUpdateY = y;
             imageUpdateW = w;
             imageLoaded = (flags & (ALLBITS|FRAMEBITS|ABORT)) != 0;
         return !imageLoaded;
        public int getWidth() {
             return width;
        public int getHeight() {
             return height;
        /** Replaces the ImageProcessor, if any, with the one specified.
         * Set 'title' to null to leave the image title unchanged. */
        public void setProcessor(String title, ImageProcessor ip) {
            if (title!=null) this.title = title;
            this.ip = ip;
            img = ip.createImage();
            boolean newSize = width!=ip.getWidth() || height!=ip.getHeight();
         width = ip.getWidth();
         height = ip.getHeight();
         if (win!=null && newSize) {
                win = new ImagePanel(this);
        public void draw(){
            CenterRect ic = null;
            win = new ImagePanel(this);
            if (win!=null){
                win.addIC(this);
                win.getCanvas().repaint();
                ic = win .getCanvas();
                win.panel.add(ic);
                int width = win.imp.getWidth();
                int height = win.imp.getHeight();
                Point ijLoc = new Point(10,32);
                if (xbase==-1) {
                    xbase = 5;
                    ybase = ijLoc.y;
                    xloc = xbase;
                    yloc = ybase;
                if ((xloc+width)>ijLoc.x && yloc<(ybase+20))
                    yloc = ybase+20;
                    int x = xloc;
                    int y = yloc;
                    xloc += XINC;
                    yloc += YINC;
                    Dimension screen = Toolkit.getDefaultToolkit().getScreenSize();
                    count++;
                    if (count%6==0) {
                        xloc = xbase;
                        yloc = ybase;
                    int scale = 1;
                    while (xbase+XINC*4+width/scale>screen.width || ybase+YINC*4+height/scale>screen.height)
                        if (scale>1) {
                   originalScale = scale;
                   ic.setDrawingSize(width/scale, height/scale);
        /** Returns the current AWT image. */
        public Image getImage() {
            if (img==null && ip!=null)
                img = ip.createImage();
            return img;
        /** Replaces the AWT image, if any, with the one specified. */
        public void setImage(Image img) {
            waitForImage(img);
            this.img = img;
            JPanel panel = ImagePanel.panel;
            width = img.getWidth(panel);
            height = img.getHeight(panel);
            ip = null;
        /** Opens a window to display this image and clears the status bar. */
        public void show() {
            show("");
        /** Opens a window to display this image and displays
         * 'statusMessage' in the status bar. */
        public void show(String statusMessage) {
            if (img==null && ip!=null){
                img = ip.createImage();
            if ((img!=null) && (width>=0) && (height>=0)) {
                win = new ImagePanel(this);
                draw();
        private void waitForImage(Image img) {
        if (comp==null) {
            comp = ImagePanel.panel;
            if (comp==null)
                comp = new JPanel();
        imageLoaded = false;
        if (!comp.prepareImage(img, this)) {
            double progress;
            while (!imageLoaded) {
                if (imageUpdateW>1) {
                    progress = (double)imageUpdateY/imageUpdateW;
                    if (!(progress<1.0)) {
                        progress = 1.0 - (progress-1.0);
                        if (progress<0.0) progress = 0.9;
    public void setFileInfo(FileInfo fi) {
        fi.pixels = null;
        fileInfo = fi;
    }

  • Rounded Rectangle Tool: Only creates outlines

    Desired solution:  a rounded rectangle filled with color #00628b, 40px high, 200px long.
    Situation:  The rounded rectangle tool produces an outline in the my foreground color.  I have been unable to make this tool create a rounded rectangle that is the color I listed above.
    Thanks,
    Confused_2_much11

    Pick the right tool in the options bar. (Ignore the pen – the choice is the same for the rounded rectangle.)

  • Problem rotating rectangle (selecting corners) after creating with rectangle tool in illustrator

    I'm using the latest CC version of Illustrator. When I draw a rectangle using the rectangle tool, I no longer seem to be able to select the corners to resize the rectangle nor does the cursor turn to a rotate icon when I put the mouse just outside the corner. I know that Ai CC treats rectangles differently now, with the live rectangles and the rounded corner options, and the transform box opening automatically. What I'm wondering, and hoping isn't the case, is whether this is this at the expense of being able to go right in and resize using the just the mouse? I know that there is the  "Object > Shape > Expand" option, but having to do that for every time I draw a rectangle is time-consuming and adds and extra step that was unnecessary before. I saw a tutorial on Lynda where the instructor drew a live rectangle in CC AND was still able to resize it by grabbing the corner "handle". Anyone know if this is just a setting I need to turn on or something similarly easy, or is it a case of Adobe inadvertently making the workflow longer when trying to make it easier? And yes, I have "show bounding box" selected under VIEW.

    MOD indi-go girl,
    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

  • Why rotated rectangle tool can't draw rotated ROI on image?

    I want to use the tool window to draw a rotated rectangle on image, but each time, it seems only draw a rectangle, it can't rotate. Don't know why?
    In Vision Assitant, if I use rotated rectangle tool, it will show like this:
    Using the cross lines in rectangle, I can rotate my ROI, it is OK.
    Run the sample code: C:\Users\Public\Documents\National Instruments\CVI\samples\Vision\2. Functions\Geometric Matching, change     imaqShowToolWindow (FALSE);
    to  imaqShowToolWindow (TRUE); 
    on line 93#. Compile then run. Seems I also can't rotate my ROI, don't know why?
    Please show me? Thank you. 

    Hi,
    You cannot perform action on an overlay. In order to achieve what you want to do, I suggest you to use the ROI property in an image property node. Then just pass your ROI coordinates, the ROI will be updated automatically whenever your coordinates changes. You can drag a ROI this is impossible with an overlay.
    Regards

  • Changing Thickness of Lines Created with Rectangle Tool in CS2?

    I am trying to change the thickness of the lines for a rectangle drawn using the Rectangle Tool in Photoshop CS2.
    I can not figure out how to change the thickness of the lines of the four sides of the rectangle before I draw the rectangle using the Rectangle Tool or after the Rectangle has been drawn. The same problem seems to occur when using the Polygon Tool, Ellispse Tool, etc.
    I can transform the rectangle to make it bigger or smaller, etc. but it seems like I should be able to vary the thickness of the lines for a rectangle.
    Is this task possible in Photoshop?  It's simple in Illustrator - this seems like it should be a pretty simple task in P-shop.  I have looked on Google and in Help for P-shop CS2 for an answer but can not locate a solution.  Am I not seeing something really obvious?
    Any help is greatly appeciated.
    Thanks!

    Hi,
    Thanks for your reply.
    I am making a path.  That said, in Photoshop CS2 I don't see where I can select a brush size once I have selected the Rectangle Tool to increase the desired thickness or weight of the path for that rectangle.  Since I am creating a path why would I use/select a brush size?  I have attached a screen shot which shows what I am seeing when I select the Rectangle Tool and attempt to change the thickness of the path. The attached image aslo shows what I am trying to accomplish.  I don't see where I can select the weight or thickness - even when I right-click with the mouse, etc.  Even if I try to change the Style from the Option bar it seems overly complex for such a simple task.
    When using the Line Tool in Photoshop CS2 you do have an option to change the line thickness or weight but when I click on the Rectangle Tool that option for changing the the line thickness or weight disappears.
    I realize P-shop CS2 isn't specically designed for drawing, like Illustrator, but what I am trying seems simple.
    Any other suggestions would be greatly appreciated.
    Thanks for your time!

  • Rectangle and title tool only allow fixed ratio

    Hi. Both the title and rectangle tool will ONLY draw in fixed ratio. I trashed the prefs. Didn't help. Is there some setting that locks it as fixed? I know in photoshop it's on the top bar, but I'm not seeing anything like that here in illustrator. Please advise how to turn this off. Thanks.

    You are welcome, jk.
    Thanks. Didn't know about that
    Hidden Bounding Box and Hidden Edges (they appear in the View dropdown list as Show instead of Hide) are regular troublemakers.
    They may occur when Ctrl/Cmd+Shift+B and Ctrl/Cmd+H are pressed by mistake instead of other, slightly different, key combinations. Often, the right combination is pressed afterwards, and the effect goes unnoticed and is often only noticed later when the mispressing is forgotten.
    The hidden Bounding Box may also be caused by preference corruption because it is a global setting.

  • I can't able to access shapes(circle,star) in tool,only rectangle is used.what to do for drawing other shapes?

    i can't able to access shapes(circle,star) in tool,only rectangle is used.what to do for drawing other shapes?

    Mylenium is right; we don't know enough to help you.
    Screenshots of your interface would help. Also, more information about your OS, version of AE, etc.: FAQ: What information should I provide?

  • Can only draw circle and square in Illustrator CS5 and Photoshop CS5

    I am experiencing a strange bug that seems to be affecting both Photoshop CS5 and Illustrator CS5. In Illustrator, when I try to draw a rectangle or ellipse I can only draw circles and squares. Also I can't change the color of selected objects. When I try to change its fill nothing happens. I can also only drag objects on the 0, 45 and 90 degree angles. Also I can no longer select off an object by clicking on the artboard. When I click on the artboard nothing happens.
    Similarly in Photoshop I can only draw straight lines using the brush tool. The  marquee tool is also not functioning properly. When I try to use the marquee tool the marching ants form a square but when I release the mouse it selects a rectangular portion. Strangely if I use the marquee tool and make selection I can press the shift key and add to it but this second selection's marching ants are not square but are properly rectangular.
    Since the problem seems to be affecting both Illustrator and Photoshop I'm thinking it's probably some kind of system conflict or perhaps an application running in the background is affecting it. Also if I restart my mac the problem goes away. Unfortunately the problem eventually returns.
    Anyway I'm pretty sure most of the suggested fixes involve systematically going through all the programs running in the background and trying to determine which if any might be affecting Illustrator and Photoshop but I just thought I'd post something in case someone else had the problem or knew of any fixes.
    I'm running CS5 on a MBP.
    Thanks!

    Ok I figured out the problem. It was another application called teleport which lets you control 2 macs with one mouse. It requires a hot key and in my case that was the shift key. Even though it was running it was still affecting me. Had to quit it and restart. If you're having a similar problem I'd check to see you're not running any other applications that can be activated with a hot key.

  • Why is my rectangle tool creating skewed rectangles in Adobe Illustrator CC?

    Why is my rectangle tool creating skewed rectangles in Adobe Illustrator CC?

    I am experiencing the same problem! Any shape tool I try to use has some kind of pre-defined shear angle. And the constrain angle is set to 0º in Preferences...
    Can anybody please help? I just want to draw a square!!!

  • Getting the no draw cursor when trying to use rectangle tool

    I am doing assignment 9 (Perspective) in the Adobe Illustrator Classroom in a Book. After setting up the grid as it says, it tells you to choose the rectangle tool and then a grid side from the Plane switching widget, then draw a rectangle. When trying this my cursor changes into the pen with the line thru the circle, not letting me draw. Does anyone have a suggestion for why this is happening? I should be able to hover over the origin of the perspective grid and the cursor should turn to an arrow pointing left indicating that I can draw.
    Thanks in advance,
    Eryn

    Which version?
    Can you show a screenshot?
    With layer panel visible and layer open.

  • It's simple... I want the Illustrator pen tool to ALWAYS make corner annchor points and NEVER smooth.  Right now I have to convert every single one of them, or I have to do a work around every time I draw a line and make one of the handles disappear.  Is

    It's simple... I want the Illustrator pen tool to ALWAYS make corner annchor points and NEVER smooth.  Right now I have to convert every single one of them, or I have to do a work around every time I draw a line and make one of the handles disappear.  Is there some simple setting out there that will just "make it so?"@

    The video I am watching this guy is just dragging every line to make curves.  And every anchor point is a corner.  He is not switching back and forth between the pen and the anchor points tool, and he is not using the convert points tool.  He draws a curved line and starts another straight line only to curve it with a click and a drag.  It is super efficient, and I could save a world of time if I could figure out what he is doing.

  • Can I place a (Rectangle Tool) container filled with an image in an (Accordion) widget and make it clickable?

    Is it possible to use the Rectangle Tool to create a container, fill the container with a graphic image, place the container and image in an Accordion widget space and make the container clickable to open and close the Accordion?
    I've done this but the container isn't clickable, only the other areas of the Accordion window are. Can this be done?

    You can use the image as fill for label of accordion which will open the container on click.
    If this does not answer your question then please provide me an example where I can see what exactly you are trying to achieve.
    Thanks,
    Sanjit

  • When drawing with polygon tool, a solid black rectangle appears??

    When I use the polygon tool to draw, a mysterious black rectangle appears underneath, and grows with my cursor movement, obscurring whatever is underneath. The black shape has nothing to do with the shape I'm creating. I am tracing boundary locations on a map, for example, and the black shape blocks out the lines I'm trying to trace, if my opacity is set at 100%.  It mimics the opacity I'm using to draw.  I never saw this in AA7.  Why would anyone want this function, and is there a way to turn it off?

    Hey leonieDF
    Thanks for your reply. I am exporting edited versions - export seems to work OK when exporting originals. But all my images are edited a bit, even if just simple cropping etc.
    I tried adjusting the color sync profile as you suggested but this didn't help. I also adjusted the gamma and watermark and again, no change.
    It seems like I have some kind of bug or something within Aperture, because it is doing all kind of strange things, like now eny time I edit a photo at all it appears solid black in my "browse" view (but OK when I double click it). Similarly, when I duplicate a photo it does random funky stuff to the photo in browse view (from being solid black, to solid red, to appeairng to have some random color filter, to appearing like static from static TV). These issues are all secondary though from the main issue of not being able to export images, since I have a friends wedding photos I am trying to get out to them!
    Any other ideas of what might be causing this?
    Thanks for your help!

Maybe you are looking for

  • Portgroups related to Logical Switches

    Can anyone decode the naming convention of portgroups created by the logical switches like i can understand transit network is the name of logical switch and 5000 is the VXLAN id but what are the other words given here i just want to understand. Scre

  • Ipod not reconised by computer

    Please help, After a couple of months of my laptop and Ipod working in harmony, my Laptop all of a sudden decided that it wouldn't recognise my Ipod as an Ipod. When I connect it it now brings it up as a mass storage device at the bottom corner of my

  • Question about Local and Central Services Registry

    Hi guru, We are using CE7.2 and have deployed some BPM DC to it. After deployment, we can see the web service (we made to start the process) from the local SR. Now we want to build a central SR on aonther machine (AS Java + SLD + SR) and re-point the

  • Nokia n95 no route tracking?

    Hi. Nokia n95 announces route tracking...but i dont have it. Just global position in the map. To have route tracking i need to buy a licence? regards

  • Variable error

    Hi,    What could be the reason behind the selction for the calendar day as of now i am facing one problem when i am giving variable( calendar day) then report result is showing"No Aplicable data found", and when removing that from the selction then