Draw and erase boxes

I have a project that will present screen-shot images to
users’ one-at-a-time. When presented a screen-shot, the user
needs to categorize specific portions of it. There are 7
categories, which are color coded (e.g., main content –red,
navigation – blue, etc.). Ideally, I would like the user to
click on a category label and then be able to drag a box across the
portion of the image that corresponds to the category. After
releasing the mouse a colored box should appear over that portion
of the image. Users will need to categorize multiple segments of
each screen-shot. They will also need to erase boxes in case they
make errors. Does anyone have suggestions for how I might
accomplish this in Authorware or could you point me to examples
where I might get ideas about how to proceed.
Thanks very much.

Keep a list of all the boxes that are drawn, then erase them
all and redraw
only the ones you want to keep. You can use a
multidimensional list or a
text string where each line contains numbers separated by
commas that are
the box coordinates.
HTH;
Amy
"gibbsDuq" <[email protected]> wrote in
message
news:eep7la$qu1$[email protected]..
> Chirs and Steve, thank you for the information. When I
draw multiple
> boxes on
> the screen, can one box be erased without impacting the
other boxes? How
> might
> I go about this? I'd appreciate any suggestions.
>
> Thanks
>
>

Similar Messages

  • Draw and erase in AS3 help needed

    Hello all
    I have a 200x200 movie clip in a certain position I am trying
    to draw in as3, and then erase it to reveal another clip
    underneath. I am not able to specify the erase brush to be active
    just on top of that clip not on all over the stage.
    Here what I have so far , scratch is the name of my original
    clip I am drawing back
    var bitmap:Bitmap=new Bitmap();
    var bd:BitmapData=new
    BitmapData(scratch.width,scratch.height,true,0x00FFFFFF);
    bd.draw(scratch);
    bitmap.bitmapData=bd;
    addChild(bitmap);
    bitmap.x = 200;
    bitmap.y = 200;
    removeChild(scratch);
    but when I start erasing I have to start from 0,0 to erase my
    bitmap.
    THanks for your help

    Lgeee wrote:
    And how would i go about doing that?By making a proper design.
    This way, I can easily do what the object itself is made to do, without writing alot of code that checks what kind of object was sendt.
    The first way I did this was:
    Psudo Code:
    Object obj = input.readObject();
    String type = obj.getClass().toString();
    if (type.contains("logonObject")) {
    } else if (type.contains("playerObject")) {
    I don't think that's relevant. I don't see where that code uses anything which is specific to the server and to the client. Those class names look like they belong in the server, so that code shouldn't be in a "shared" class. It should be in a "server" class.
    As for the issue of having to tell what kind of object was sent, I'm sure there are better ways than just sending an object and then having the receiver inspect the object to see what kind of object it was.

  • Draw and erase ?

    Hi,
    so far, I can draw shapes on a background (using the methods in the java 2D tutorial). But what I'd like to know is how I can erase a shape already drawn.
    My game is a monopoly : I can draw houses on the correct squares. Okay, but when the player sells a house, it must disappear. How do I perform this ?
    BTW : perphaps there is a better wawy to achieve this goal than drawing on the background (buffered) ? Feel free to suggest anything you would think better ;)
    Thanks for your help.

    You either have to clear the whole component and redraw everything in the appropriate order, except what you don't want to show anymore, or you have to clear the area of the erased item and redraw what was "under" it. Well, I guess you don't really need to "clear" it, just draw what was under it on top of it again (including whatever background if that shows in that area). More often then not, the former is simpler to do, although not necessarily the best performance-wise.

  • Drawing a Selection Box.

    Hello forum,
    Is there an easy way of drawing a selection box or do I have to draw it myself? I have been trying to do it myself but I'm having trouble erasing the previous boxes. All I'm doing is drawing a rectangle, how do I undraw it when the user moves the mouse?
    Selection Box = The user presses the selection tool. When the mouse button is pressed, I start drawing the selection box. As the user moves the mouse, the box gets bigger and smaller.

    found it....what you want to do is use setXORMode.
    public DrawSelectionBox(Rectangle RVRect)
    g2.setXORMode(Color.white);
    g.drawRect(RVRect.x,RVRect.y,RVRect.width,RVRect.height);
    }call this method to draw and erase the rectangle. you can change the color...using white gives you a black box.

  • Clone Stamp and Alignment Box Question - Cs3

    I am learning Photoshop now.  According to my tutorial (TT Basic), When I realease the Mouse and Alt key  after selecting the clone tool, there should be a circle showing my selected area.  I do not have a circle showing, so the alignment box cannot lock onto the area, I'm guessing. My Alt Crosshairs show up in Red, if that is important.  Does the layer matter in the cloning, and the lock on or off?  The tutorial isn't showing the layer boxes so I can't tell.
    Thanks.

    Photofriend wrote:
    Back to he drawing board.  No Circle with cloning tool, and the image that I'm trying to do away with is moved to the side, not copied over.  But it doesn't show until I move the brush that I can't see over the area.  I am using New Layer and current layer.  Should I be doing differently?
    Not clear on what you are doing.   When you set the clone source location with alt + left mouse click you will get a small circle with crosshair inside.  You should have a circle representing the brush size where the clone is to take place, and when you clone there will be a crosshair at the clone source.
    You say you do not have circle with cloning tool.  Do you get a circle with other tools like brush and eraser?
    In simple terms open a image, click create new layer in layers panel and with layer active (blue) use cloning tool.  What do you get?

  • Cannot edit text in Drawing Markup Text Box

    I cannot edit text in Drawing Markup Text Box after saving and closing the pdf file and then reopening it.  I go to add additional text in the Text Box, and nothing happens.
    Hope you can lend me a hand,
    Richard
    Adobe X Pro 10.1.4

    In the previous print screen, the layer icon has a paintbrush in it. In the new menu page I cut and pasted the text is still 'text' layer. I am not able to format it other than change font color. I want to make it two columns of text like the original pdf, and change the font.

  • Background of grey and white boxes

    Whenever I open a pdf file with Adobe Reader XI, the file opens with a background of little grey and white boxes.  These boxes make it very difficult to read the content. My question is "how can I eliminate this?" or "how do I open a PDF file with a pure white background?"
    I have tried everything.
    Thank you
    Jerry

    Hi Beth
    How big are  these fields? Are they for entering text or just check boxes?
    I have found that sometimes FormWizard is not compatible with some Quark files.
    Sounds like it might be easier for you to do the fields manually.
    First draw the field like you want it and set that as the default then you can choose to paste multiple fields.
    Also if you want to use a line for FormWizard you can make the background of the field white and cover the line with it.
    Ron

  • Blur an image - it just draws a black box!!

    Hi,
    I'm trying to write a method to blur an image and draw it on a panel. It just draws a black box (at least its the right width and height though!)
    I'm not too familar with Graphics 2D so I've no idea what the problem is - I've looked at several examples and as far as I can see my code is the same..
    This is the main class:
    public void blur()
          currentImage = images[lsClips.getSelectedIndex()];
          int height=currentImage.getHeight(this);   //make new buffered image same width, height as original image
          int width=currentImage.getWidth(this);
          System.out.println("the width is"+width);
                                                       //convert original image to a buffered image
          BufferedImage srcBuffImg= new BufferedImage(width,height, BufferedImage.TYPE_INT_RGB);
          Graphics2D big = srcBuffImg.createGraphics();
          big.drawImage(srcBuffImg,0,0,processedImagePanel);
          processedImagePanel.setImage(srcBuffImg);
          processedImagePanel.repaint();
          processedImagePanel.revalidate();
    }processedImagePanel is a customised JPanel class that I created to display the image on. I think that the setImage() method works propperly - the buffered image is not null when I checked it in this method. This is the setImage() and paintComponent() methods of that class.
    public class ImagePanel extends JPanel
    private BufferedImage buffImg;
    float[] elements = { .1111f,.1111f, .1111f,
                          .1111f,.1111f, .1111f,
                          .1111f,.1111f, .1111f,};
      public void setImage(BufferedImage img)
        processing = true;
        this.buffImg = img;
        this.repaint();
        this.revalidate(); 
      protected void paintComponent(Graphics g)
        super.paintComponent(g); //paint background
        if(buffImg!=null )   //draws blurrred image
          System.out.println("DRAW Buffered img");
          Graphics2D g2 = (Graphics2D) g;
          int w = getSize().width;
          int h = getSize().height;
          int bw = buffImg.getWidth(this);
          int bh = buffImg.getHeight(this);
                        //create a buffered image for the processed image
         BufferedImage destBuffImg = new BufferedImage(bw,bh,BufferedImage.TYPE_INT_RGB);
         Kernel kernel = new Kernel(3,3,elements);
         ConvolveOp cop = new ConvolveOp(kernel,ConvolveOp.EDGE_NO_OP,null);
         cop.filter(buffImg,destBuffImg);
         g2.drawImage(buffImg,cop, 10,10);
    }I would be very grateful if anyone could give me any suggestions..

    BufferedImage srcBuffImg = new BufferedImage(width,height, BufferedImage.TYPE_INT_RGB);
    Graphics2D big = srcBuffImg.createGraphics();
    big.drawImage(srcBuffImg,0,0,processedImagePanel);
    processedImagePanel.setImage(srcBuffImg);
    processedImagePanel.repaint();
    processedImagePanel.revalidate();I think the bug is here: why do you paint the (empty) buffered image in itself? I guess, you wanted to paint the currentImage to the bufferedImage.

  • Inbox and Sent-box don't list yesterdays emails

    Hi,
    At some point this morning I noticed that emails which I sent yesterday, and received yesterday and today, were no longer to be found in my inbox and sent-box. I can't think of anything I'd done to erase them myself (in which case they would have still been in the trash with other older stuff).
    So I did a search with Spotlight, for names connected to those emails yesterday/today, and Spotlight found the emails allowing me to open and read them. But Spotlight doesn't say where they are stored.
    The same mails do not get found anywhere when I use the search function in Mail.
    I have had no problem with Mail earlier, and this is worrysome. I then weeded away a few hundred old emails, thinking that maybe I'd exceeded some kind of memory limit, and looked through preferences without finding any unwanted option was selected.
    So two questions: Where are these unlisted emails now filed, and can anyone suggest why they fell off the listing in Mail?

    Spotlight found the emails allowing me to open and read them.
    And it was Mail that opened them for viewing?
    You can find where they really are by getting EasyFind...
    http://www.macupdate.com/info.php/id/11076
    http://www.versiontracker.com/dyn/moreinfo/macosx/8707
    Use it to search your whole drive for case insensitive & show invisibles...
    .emlx
    (dot ee em el ex)
    Not certain, but this can fix myriad Mail problems...
    Safe Boot from the HD, (holding Shift key down at bootup), it will try to repair your Disk Directory while the spinning radian is happening, so let it go, run Disk Utility in Applications>Utilities, then highlight your drive, click on Repair Permissions, then move these folder & file to the Desktop.
    Move this Folder to the Desktop...
    /Users/YourUserName/Library/Caches/Mail/
    Move this file to the Desktop...
    /Users/YourUserName/Library/Mail/Envelope Index
    Reboot.

  • ARD highlight and erases remote login passwords

    When using ARD to log into remote Macs that have screens locked with a password, on several occasions after two or three characters are entered all characters are hilighted and the next keystroke erases the first part of the password. Does anyone know how to fix this error?

    I've experinced similar issues in the past. BUT I wasn't even using ARD at the time; I was using logmein. at the time I though maybe a key was stuck down on the keyboard or some one was playing with the keyboard.
    I don't remember what I did at the time to work get past the issue. I think I rebooted the computer or typed very slowly with big pauses between each letter.
    BUT like brian, I use screen saver with lock. So it's very possible I was at the screen saver lock window when I had the issue. and my box is a 10.8 box.

  • While trying to restore os x and erase content, some problem about voice software came up and the computer asked me to restart and try again by clicking restart button. When I did this, the machine went to a gray start up screen and will not progress.

    While trying to restore os x and erase content on my MacBook pro, some problem about voice software came up and the computer asked me to restart and try again by clicking restart button. When I did this, the machine went to a gray start up screen with an apple and will not progress. I've waited more than 30 minutes and tried restarting again by holding the power button. Also, restore cd 1 will not eject so the computer will no longer move past the gray screen with spinning circle. Restore CDs had never beeused and were still in packaging in the original box. Ran hardware test just to check, and it came back as normal. Now what? I live nowhere near a genius bar :(

    computer asked me to restart and try again by clicking restart button.
    That's called a kernel panic...
    Since the install disc won't eject, try starting up while holding down the C key. If the Mac won't boot while holding down the C key, try ejecting disc by either holding down the mouse while starting up or holding down the Eject key while starting up.
    Try booting from your install disc so you can run Disk Utility in case the startup disk needs repairing.
    Insert your install disk and Restart, holding down the "C" key until grey Apple appears.
    Go to Installer menu and launch Disk Utility.
    (In Mac OS X 10.4 or later, you must select your language first from the installer menu)
    Select your HDD (manufacturer ID) in the left panel.
    Select First Aid in the Main panel.
    (Check S.M.A.R.T Status of HDD at the bottom of right panel. It should say: Verified)
    Click Repair Disk on the bottom right.
    If DU reports disk does not need repairs quit DU and restart.
    If DU reports errors Repair again and again until DU reports disk is repaired.
    When you are finished with DU, from the Menu Bar, select Utilities/Startup Manager.
    Select your startup disk and click Restart
    While you have the Disk Utility window open, look at the bottom of the window. Where you see Capacity and Available. Make sure there is always 15% free space.
    What is a kernel panic
    Mac OS X Kernel Panic FAQ
    Resolving Kernel Panics

  • Using Adobe Photoshop CS2 version 9 and have updated it, but when stacking photos, it comes up with PSD, whereas I want Jpeg, and I change the format to Jpeg and the box then comes up with cannot save as there is a program error. Be very grateful for help

    Using Adobe Photoshop CS2 version 9 and have updated it, but when stacking photos, it comes up with PSD, whereas I want Jpeg, and I change the format to Jpeg and the box then comes up with cannot save as there is a program error. Be very grateful for help with this, please.

    jpg does not support Layers.
    Just to make sure, what exactly do you mean by "stacking photos" and what do you want to achieve thereby?

  • Turkish Character and Check Box "?" Problem in XML Publisher

    In aplication and XML Publisher I must use Turkish Characters e.g. 'ş','ı','ğ','ç','ö' and check boxes. In html preview there is no problem, I can see all of them correctly. Hovewer in PDF preview in XML Publisher and also PDF output in Oracle Application all these Turkish Characters and Check Boxes looks like question mark (?). How can I solve this problem ?
    Thanks for helps....

    Hi Tim,
    Related to Special Italian characters, when I try with "Courier New" font with static data,the XML Preview display those characters.But when those chars come from XML source file,they get vanished.I tried two cases:
    Case1 ) IN EBS,I have attached courbi.ttf(font file) to the template manager(followed as per instructions in Font mapping section in User Guide).
    When I try running the report ,its getting completed with Warning.
    Case 2) I have also modified xdo.cfg ( as per Doc ID:400755.1 www.metalink.oracle.com)-
    In both cases ,I am not acheving the desired results.
    Please let me know where I am going wrong.
    Thanks and Regards,
    Kaveri

  • Pictures and text boxes in rtf template

    Hi there,
    are there any general rules for applying pictures and text boxes to rtf-templates?
    As far as I have experienced, the text boxes are not shown when generating a report. Is it generally not possible to display text boxes? Are there any work arounds?
    Thank you,
    BR
    Lena

    Hi,
    do you mean instead of text boxes?
    Yes, that is no pborlem.
    Are there any known issues regardings pictures and any other design elements?
    Thank you!
    BR
    Lena

  • Display data in list and combo box

    hi all....
    how to display data from database in list and combo box? i use MYSQL...
    help me please..... tq...

    1 - Write a query to retrieve the data you want from database
    2 - In a servlet, connect to database, Run the query, scroll through the result set and put the data into a list of Java Objects.
    3 - Set a request/session attribute of that list of objects
    4 - Forward to JSP
    5 - In JSP, create a <select> box, and then use a <c:forEach> loop to generate <option> tags from the list.

Maybe you are looking for