Bounding box on graphic

Hi you'all.
Anyone know how to place a bounding box around a graphic?
Thanks.
Richard

If you can't see it, it means that you're trying it on the background layer in which case, double click on it in the Layers panel(not on the thumbnail or the name) and click OK to turn it into a normal layer and try again

Similar Messages

  • Bounding box of a Graphic object

    Hi,
    How can we obtain bounding box of the graphic object generated by fill etc.,
    i tried with "pathbbox" it will provide the exact x,y position but iam not able to get the height and width of the object.
    Regards,
    S.Sudhagar

    pathbbox gives the bounding box of the current path (subject to the limitations on curves described). I am not sure why you say you can't get width and height.

  • Clickable Bounding Box, Rather than Graphic

    I have built a series of buttons that overlay each other to
    form a map of a country. Clicking the correct country is the goal
    for the user. The countries are in odd shapes. My problem is that
    the square bounding box of the graphic is the clickable area. Can I
    make only the graphic clickable and how???

    Yes
    You should change the "hit" state of the button's timeline.
    You can put whatever shape you need there (in this case the
    country's boundary) to become the button's clickable area.

  • Can you change the colour of an 'image' bounding box?

    This concerns bounding boxes not 'strokes'.
    Is it possible to customise the default colour of a bounding box around an image?
    I know that the default 'rectangle image frame' matches the Layer colour (eg: Layer 1 - Light Blue, with an the image bounded by a brown box) which is easily changed by moving it to another layer (eg: Layer 2 - Red, which displays an image bounding box of Cyan). What defines the colour of the bounding box of an image that is placed inside the 'rectangle image frame' and can it be changed?
    I have no real necessity to change it, I just wondered if it was possible?
    Steve

    I'm not sure you understand the terminology.
    The bounding box is an imaginary rectangle that encloses the shape of an object or group of objects. For a simple graphics frame this is the same size and shape as the frame and is poisitioned on the frame edge (and it's what you see when you select the frame). The bounding box is used for calculating object positioning. When dispalyed, it takes on the color assigned to the layer.
    The frame edge is also fictitious. It's a screen display aid that can be tuned on or off to help you locate objects and also uses the color assigned to the layer. It corresponds to the path that describes the edge of the frame, so might not be rectangular (a bounding box is always rectangular).
    The stroke is an attribute assigned to the path describing the perimeter of a closed object or the path itself of an open path. Stokes can be assigned a weight, color, and stroke style such as dotted or striped.
    An image placed inside a frame has it's own bounding box, but not a frame edge or stroke. To see the image bounding box use the direct select tool to select the image inside the frame. If you crop an image so it is larger than the containing frame, or or enlarge the frame so the image does not completely fill it, you can see the differnce between the bounding boxes very easily. The color of the image bounding box is also tied to the layer color and is not editable by the user.

  • Effects change bounding box background color

    This is a technical continuation of my earlier inquiry - to which I found a workaround but not the solution.
    Create a document with a black background.
    Drop a graphic with a transparent background, or a block of white text, on that background.
    Print. You have stuff on a black background.
    Now apply an effect to that graphic or text - emboss, glow, whatever.
    Print. If you're like me, you have stuff in a noticeable dark-black bounding box on a less-black background.
    Why?
    Despite much discussion and suggestions of the obvious (match color spaces, use CMYK graphic, remove underlying black background, etc.) not one thing I ever tried eliminated this bounding-box shadow, which, oddly, does not seem to appear on other colored background, even dark ones. ID is doing something with the black background... but what?
    This also happens when (as in my specific case) a photo with a rich-black background refuses to match with a black background of the same color build. The photo is a deeper, shinier, rich black while the graphic black is colder and grayer.
    The only thing I can think of is that it's an artifact of my HP print drivers, so I'd be interested in seeing who can replicate this fault and who can't. ...thanks!

    The full-rasterization technique in the original post fixes the problem, yes. I experimented with quite a few other settings along this line including letting the printer handle color and setting the mode to PS2. Nothing - as before - corrected the issue.
    So what exactly is the problem here? Is ID sending badly formed PS code? Is there a bug in the PS3 interpreter? Or what? And is there any way to actually fix this, or is the ID-rastering setting the only way?
    And, finally, is this only an issue on my printer, or will the magazine's page imager render the same fault? These are pretty expensive ads for the client and I don't want to see these lovely bands when the magazine hits my desk. If it's just my printer, I can live with the workaround. But as this is a high-end HP with genuine PS3, how can a RIP with PS3 handle it any differently?
    Thanks for the workaround, in any case. I'd still like to fix the PROBLEM, if I can.

  • InDesign CC bounding box alignment illusion

    Has anyone else experienced an illusion in InDesign CC where the top of a bounding box appears to be misaligned with a margin or guide because the standard blue bounding box is replaced with a blue + magenta margin color? I have confirmed this is just a screen illusion because the reference points all match up, and in fact certain zoom stops correct the illusion, but it always gives my OCD pause. I'm sorry it is hard to explain, but see the graphic for clarification. To my knowledge, this was never an issue in priors versions going back to CS3. I realize this is small potatoes in the grand scheme of things, but is this a known bug or a confusing new feature I haven't unchecked yet?

    Never paid attention to that. But it seems that's the case. I usually work with Fit Spread in Window enabled which is a bit less that 100% and you don't see that. The margin frame underneath shows only at 100%.

  • Edge detection between the finiteelement mesh and a bounding box

    i have an finite element mesh ,i constucuted a bounding box which passes through the mesh ,so now i want to detect the edge of the rectangle which intersects the mesh and construct a new mesh which resides in the rectangular box.how to do this.any kind of help is appreciated.
    P /------------------\ Q
    A |---- |/---|-----|----|-----|--\--| B
    |----/|----|-----|----|-----|---\-|
    |---/-|----|-----|----|-----|----\|
    |--/--|----|-----|----|-----|---- |\
    D |-/---|----|-----|----|-----|---- | \ C
    S /-------------------------------------\ R
    suppose ABCD is FEMesh, PQRS is a bounding box,consider the edge PS when it intersect with the elements in the mesh i will get the pentagon element when i want to form the new mesh which contains the elements which are inside the box.the graphical represenation is not clear if you draw on a paper you can easily understand my problem.
    now how to create a new mesh from the elements which reside inside the boxin which the left hand side of PS will be discarded and RHS of QR edge is discarded,so now mesh will have some zigzag shape i think.so please help me out how to solve this problem.

    i think the figure is not clear , so i want to
    simplify the problem by considering only one element
    of the mesh and only one edge of the box.Okay.
    suppose ABCD
    is a 3D quadrilateral element and PQ is the edge
    passing through the element.i will pass a function
    with coordinates of ABCD and P (startpoint of
    edge)coordinate and its normal vector,if there is an
    intersection the function should return 2 elements
    according to intersection
    now we have element ABCD and an edge with P and its
    normal vector,now we have intersection between element
    and edge from p at X and Y, now the algorithm should
    return AXYD as one element and XBCY as second
    element.please help me out in solving this task.
    Thanks in advance.I'll assume you mean 2D, planar, linear quad. I think the general 3D problem would entail surfaces and be much more difficult. If you use higher order shape functions the 2D problem isn't trivial, because then you might have more than two intersections.
    It COULD return two points of intersection, but you'll have to be careful about special cases:
    (1) The edge could intersect just one of the four corners,
    (2) The edge could coincide with an edge of the element,
    (3) The edge could miss the element entirely and not intersect.
    You'll have to decide what to do in the degenerate cases. The sensible thing would be to do nothing and leave the element alone.
    You'll also be concerned about mesh quality when you're done. Near degenerate elements won't perform well when you analyze them. Will you try to correct these after the fact?
    What if you end up with triangular elements? An edge might slice off a triangle and leave you with a five-noded element. What will you do with those? Create two triangles to get back to a quad? It's not so easy. You really should look into quadtree meshing. There are more general ways to attack a problem like this.
    What kind of physics are you ultimately trying to capture? What are you really doing here?
    You've described the algorithm fairly well, even if you haven't thought it all the way through.
    What's the problem? You'll have to write the code. No one will do that for you. Write some and come back with specific questions if you have difficulties. This is a Java forum, after all.

  • Can you make a text size altering bounding box in photoshop?

    I am working on some titles combined with some graphics in photoshop and I'd like to make a bounding box that alters the size of the text for each line. Basically I want the name to be on the top at the full width of the box and then that persons job title on the next line at the full width of the box so that the edges line up but the font size is different and alters itself depending on how long the name and title is for each person. I know I could do this manually... and most likely will for now, but I've got 33 titles to make and this would be a whole lot easier. Is there a way to make a text size bounding box that does this?

    Scripting or maybe even an Action might work but a real-time interactive rescaling Type Layer is not an option in Photoshop as far as I know.

  • Drag Bounding Box not going away

    Hey guys,
    I use photoshop about 12 hours everyday for design, so this is a pretty big issue for me:
    After a while of working, when I use the move tool, the drag bounding box comes up and stays.
    I've been advised in THIS THREAD to install the "DisableDragBoundingBox.plugin" from the optional plugins.
    I did. I put it in the root plugins folder as well as the optional plugins folder within the plugins folder. But nothin' doin'. The box still shows up and annoys the hell out of me. It's too noticable on a 15" MBP.
    Does anyone have this problem too? I can't stand having to restard photoshop 5000 times a day. Have i not installed the plugin correctly?
    Help!
    Thanks for your time
    your designer pal,
    Aleks

    Okay, so far I've been running photoshop for a few hours and it didn't occur. I turned the OpenGL mode in advanced settings to Advanced and turned off Anti-Alias Guides & Paths. I bet this problem is because of OSX, because there's no reason why the graphics card should be whacking out on a stock 15" MBP purchased few months ago.
    I'll write once more to confirm the disappearance of the problem.
    Thanks to everyone!

  • Bounding box for text

    Howdy, I am looking for a way to get the bounding box of some text. I can do it with a graphics2d object, but there are some times when I want to get the bounding box without having access to a graphics objects. I have looked at several classes in the API and it seems that they either take a graphics object or one of their parameters takes a graphics object (Parameter A uses a graphics object of method A, for example). Is there a way to do it without one?
    Thanks.
    Message was edited by:
    dayrinni

    See the caution in paragraph four of the FontRenderContext comments.
    import java.awt.*;
    import java.awt.event.*;
    import java.awt.font.*;
    import java.awt.geom.Rectangle2D;
    import javax.swing.*;
    public class NoGraphics {
        public static void main(String[] args) {
            String s = "Hello World";
            FontRenderContext frc = new FontRenderContext(null, false, false);
            Font font = new Font("dialog", Font.PLAIN, 36);
            GlyphVector gv = font.createGlyphVector(frc, s);
            Rectangle2D r1 = font.getStringBounds(s, frc);
            Rectangle2D r2 = new TextLayout(s, font, frc).getBounds();
            Rectangle2D r3 = gv.getLogicalBounds();
            Rectangle2D r4 = gv.getPixelBounds(frc, 0, 0);
            Rectangle2D r5 = gv.getVisualBounds();
            System.out.printf("%s%n%s%n%s%n%s%n%s%n", toString(r1, "string"),
                               toString(r2, "text"),  toString(r3, "logical"),
                               toString(r4, "pixel"), toString(r5, "visual"));
            final JLabel position = new JLabel("x = 0  y = 0", JLabel.CENTER);
            JLabel label = new JLabel(s, JLabel.CENTER);
            label.setFont(font);
            label.setText(s);
            label.setOpaque(true);
            label.setBackground(Color.pink);
            label.addMouseMotionListener(new MouseMotionAdapter() {
                public void mouseMoved(MouseEvent e) {
                    position.setText("x = " + e.getX() + "  y = " + e.getY());
            JPanel panel = new JPanel(new GridBagLayout());
            GridBagConstraints gbc = new GridBagConstraints();
            gbc.insets = new Insets(2,2,2,2);
            gbc.gridwidth = gbc.REMAINDER;
            panel.add(label, gbc);
            panel.add(position, gbc);
            JOptionPane.showMessageDialog(null, panel, "Compare",
                                          JOptionPane.PLAIN_MESSAGE);
        private static String toString(Rectangle2D r, String id) {
            return String.format("%8s [%.1f, %.1f]",
                                  id, r.getWidth(), r.getHeight());
    }

  • Bounding box and 3D

    I have an issue with getting movieclip's bounding box when it has nonzero z-property. Here's the example of code producing correct result shown on figure A:
    var m : Meat = new Meat();
    addChild(m);
    m.x = 100;
    m.y = 100;
    m.z = 100;
    m.rotationY = 45;
    var bb : Rectangle = m.getRect(this);
    graphics.lineStyle(1, 0xFF0000);
    graphics.drawRect(bb.x, bb.y, bb.width, bb.height);   
    But when im setting custom projection center on container movieclip bounding box stays the same as in previous code but object is moved according to perspective distortion (figure B).
    ar m : Meat = new Meat();
    addChild(m);
    m.x = 100;
    m.y = 100;
    m.z = 100;
    m.rotationY = 45;
    transform.perspectiveProjection = new PerspectiveProjection();
    transform.perspectiveProjection.projectionCenter = new Point(0, -100);
    var bb : Rectangle = m.getRect(this);
    graphics.lineStyle(1, 0xFF0000);
    graphics.drawRect(bb.x, bb.y, bb.width, bb.height);
    Is it a bug or is there any way to get correct bounding box with custom projection center?

    To report bugs, send a detailed bug report (including information about the version number of your software, some details about your computer, et cetera) to [email protected]
    You can also submit bugs through the
    feature request form if that's more convenient:

  • Bounding Box  and Affineransform

    I'm working on a tank game. right now, i just have an applet and a little tank that drives around. unfortunately, i can't figure out how to get a bounding box to encapsulate with my image. can anyone help me? my prog is two classes: TankGame and Tank. Tank extends Rectangle and draws itself and an image of a tank. as the image is rotated, the rectangle(bounding box) is offset between 0 and image size, along both the x and y axis.
    import java.applet.*;
    import java.awt.event.*;
    import java.awt.geom.*;
    import java.awt.image.*;
    public class TankGame extends Applet implements ImageObserver, KeyListener, Runnable{
         int gameSpeed=50;
         int tankSpeed=4;
         Graphics2D dbg;
         Image dbImage, tankPic;
         int imageHeight=32, imageWidth=32;
         Thread th;
         Tank theTank;
         AffineTransform transform;
         boolean forward=false,reverse=false,right=false,left=false;
         Point location;
         double rotation=Math.PI/20,angle=Math.PI;
         public void init ()     {
              setBackground(Color.black);
              setSize(600,600);
              tankPic=getImage(getCodeBase(),"tank.jpg");
              theTank = new Tank(tankPic, this);
              addKeyListener(this);
              transform = new AffineTransform();
              location = new Point(150,150);
              transform.translate(location.x,location.y);
              transform.rotate(angle);
         public void start (){
              th = new Thread (this);
              th.start ();
         public void run ()     {
              Thread.currentThread().setPriority(Thread.MIN_PRIORITY);
              while (true){
                   move();
                   repaint();
                   try     {
                        th.sleep (gameSpeed);
                   }catch (InterruptedException ex){
         public void paint (Graphics2D g)     {
              g.setColor(Color.red);
              theTank.draw(transform, g);
         public void update (Graphics g)     {
              if (dbImage == null){
                   dbImage = createImage (this.getSize().width, this.getSize().height);
                   dbg = (Graphics2D)dbImage.getGraphics();
              dbg.setColor (getBackground ());
              dbg.fillRect (0, 0, this.getSize().width, this.getSize().height);
              dbg.setColor (getForeground());
              paint (dbg);
              g.drawImage (dbImage, 0, 0, this);
         public void keyPressed(KeyEvent e) {
              if (e.getKeyCode()==38){forward=true;}
              if (e.getKeyCode()==40){reverse=true;}
              if (e.getKeyCode()==37){left=true;}
              if (e.getKeyCode()==39){right=true;}
         public void keyReleased(KeyEvent e) {
              if (e.getKeyCode()==38){forward=false;}
               if (e.getKeyCode()==40){reverse=false;}
              if (e.getKeyCode()==37){left=false;}
              if (e.getKeyCode()==39){right=false;}
         public void keyTyped(KeyEvent e)  {}
         public void move(){
              if(forward){transform.translate(0,-tankSpeed);}
              if(reverse){transform.translate(0,tankSpeed);}
              if(left){
                   angle=angle-rotation;
                   transform.rotate(-rotation,imageWidth/2,imageHeight/2);
              if(right){
                   angle=angle+rotation;
                   transform.rotate(rotation,imageWidth/2,imageHeight/2);
              location.y=(int)(transform.getTranslateY());
              location.x=(int)(transform.getTranslateX());
              theTank.moveTo(location);
    /*class tank which draws itself and an image (though not always in the same place)*/
    class Tank extends Rectangle {
         Image image;
         Tank(Image img, ImageObserver obs){
              image=img;
         public void moveTo(Point p){
              setRect((double)p.x,(double)p.y,32,32);
         public void draw(AffineTransform transform,Graphics2D g){
              g.drawImage(image,transform,null);
              g.setColor(Color.blue);
              g.draw(this);
              g.setColor(Color.red);
    }i've messed with this for a couple of hours, this morning to no avail.

    Try this:
    change the tank class to     93 class Tank extends Rectangle {
         94     Image image;
         95
         96     Tank(Image img, ImageObserver obs){
         97         image=img;
         98         setRect(0,0,32,32);
         99     }
        100 /*  public void moveTo(Point p){
        101         setRect((double)p.x,(double)p.y,32,32);
        102     }*/
        103     public void draw(AffineTransform transform,Graphics2D g){
        104         g.drawImage(image,transform,null);
        105         g.setColor(Color.blue);
        106         g.draw(transform.createTransformedShape(this));
        107         g.setColor(Color.red);
        108
        109     }
        110 }and comment out the line that calls the moveTo-method.
    Does it do what you want it do now?

  • Strange Bounding Box Behaviour

    Hi
    I have been working in Illustrator recently - and a problem has arisen which is making it hard to produce an accurate artwork. When drawing a simple rectangular box around a 500 x 830 px page - the bounding box is misaligned to the content box.
    What I mean by that is that there is a gap between the edge of the bounding box - and the actual border of the box. To make matters worse - if I move the node for the bounding box - the line doesn't necessarily maintain the offset which appeared in the first instance. Meaning I literally cannot accurately draw a box to fit the page - as the border is always out of position.
    I have attached a couple of pics to probably better illustrate the problem than my explanation is doing. Please note, in the pics - I have literally just moved the btm left node of the bounding box (ignore the diagonal lines as this is a sep element) - not other changes have been made.
    Any ideas anyone....please....?
    Thanks
    Miles

    Thanks for the reply. Just tried the prefs deletion option but sadly to no avail. Previously I have also reinstalled the entire CS (for other reasons) and the problem had existed prior to this also.
    Interestingly if I switch the settings to "align stroke to center" it renders accurately - but the line jumps (all snapping to options are off) to either inside or outside of the artboard and wont sit nicely on the line. It becomes an issue more when exporting as a jpeg as it either renders with no bottom border atall i.e. off of the artboard, or with a pixels space beneath the bottom of the graphic - which obviously is a little unsightly.
    Very odd stuff indeed.
    M

  • Resizing in photoshop using bounding box

    How can I resize shapes or text using the bounding box with out getting pixeled or modifided? thanks!

    goldny wrote:
    How can I resize shapes or text using the bounding box with out getting pixeled or modifided? thanks!
    Shapes and Text Layers should not pixilate when they are resized.  However if you have flattened them or rasterzised them or converted them to a smart object layer if you greatly increase their size those types of layer can become pixilated.   Vector layer types like Shape layers and text layers are resized using vector graphics where pixel layers are transformed in size using interpolation which results in all new pixels for those layers.
    The only time resizing does not change pixels is when you only change the documents DPI resolution without resampling. All that changes then is the print size.  The pixel remain the same only their print size is change.
    100DPI means pixels are 1/100"x1/100" like on you desktop display. There are 10,000 pixel per square inch.
    300DPI means pixels are 1/300"x1/300" the DPI often used for print images there are 90,000 pixels per square inch
    You print is 9 time smaller printed then when displayed on your display using actual pixels for your display does not support print DPI it can only display pixels the size its manufactured with,

  • All I see is bounding boxes in the Canvas window

    I finally decided it was time I learned to use Motion.
    I opened up a tutorial, but all I can see in the canvas window is bounding boxes, similar to wireframe mode in FCP and other programs.
    If I make a RAM Preview, I can see the actual project - but the second I make an adjustment, I'm back to the wireframe.
    Not useful.
    I've done all the normal things - like trash the motion preferences.
    What am I missing?
    thanks!
    Mac Pro 3 Ghz   Mac OS X (10.4.9)   ATI Radeon X1900 Graphics - 5 Gig RAM

    I fixed the problem. An earlier post with a similar problem fixed it by making their secondary video/graphic card the output for their main monitor.
    I tried this and now everything works fine.
    Weird

Maybe you are looking for