Image Trace Trouble

Hi i got this java code but i need that the image that i'm using when it moves clear its own trace how do i do this........... if someone can help me i will be very thankful.. thanks
import java.awt.event.*;
import javax.swing.*;
import java.awt.*;
import java.applet.*;
public class BackgroundImage extends JFrame
     JScrollPane scrollPane;
     ImageIcon icon, foto;
     Image image;
     public BackgroundImage()
          icon = new ImageIcon("Fondo.jpg");
foto = new ImageIcon ("Caminando.gif");
          final int corix = 100;
          final int coriy = 220;
          final int max_corix = 500;
          JPanel panel = new JPanel()
               protected void paintComponent(Graphics g)
                    // Dispaly image at at full size
                    g.drawImage(icon.getImage(), 100, 100, null);
                    g.drawImage(foto.getImage(), corix, coriy, null);
                    super.paintComponent(g);
                    for (int corix = 100; corix <= max_corix; corix++){
                         g.drawImage(foto.getImage(), corix++, coriy, null);
                         repaint();
          panel.setOpaque( false );
          panel.setPreferredSize( new Dimension(600, 600) );
          scrollPane = new JScrollPane( panel );
          getContentPane().add( scrollPane );
          JButton button = new JButton( "Hello" );
          panel.add( button );
     public static void main(String [] args)
          BackgroundImage frame = new BackgroundImage();
          frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
          frame.setSize(900, 900);
          frame.setLocationRelativeTo( null );
          frame.setVisible(true);
}

Elisa,
Elisara,
Does this apply to a specific file/image selected, or in general?

Similar Messages

  • How to image trace multiple objects at once on Illustrator CC?

    Hello,
    This may sound like a stupid question, but I am having troubles trying to image trace multiple objects all in one go.
    I'm currently working on Illustrator CC and I remember this process being a lot easier to do on Illustrator CS5.
    I have a typical job where I create client specific barcodes on a separate program, and then bringing them into Illustrator to vectorize.
    When I used to do it in CS5, all I had to do was release clipping masks, select all 50 or so barcodes, then Image Trace - and voila, al of my barcodes were vectorized at once - easy.
    I now have to vectorize about 120+ barcodes and Illustrator CC is only letting me select & image trace one barcode at a time. There has to be a better way, and I'm hoping someone here can help.
    (I would open up CS5 and do it from there, but my work computer was recently replaced with a newer iMac and was only provided with Illustrator CC)
    Thanks!

    Not sure what your barcode-specific challenges and methods may be, but my general aversion to the image trace feature compels me to suggest that you just create the barcodes in vectors in the first place. I do that using Terry Burton's free online barcode generator.

  • Connect missing lines in image trace

    I am teaching myself Illustrator and I came across the image trace feature in CS6. I am able to to copy my drawing and do the image trace feature, but I am having trouble connecting missing lines to do a color fill without selecting the background area.
    Now, I may sound dumb, so please forgive me, but is there a way to connect missing lines using the image trace, or pen feature, that will allow me to select a specific area and do a color fill with selecting the background as well?

    To upload an image, click on the camera icon in the toolbar for this forum.
    The direct selection tool will select all points if you click on the object. But you can click on a single point, shift select other points or drag select. If there is another object below the object you want to edit, use the move tool and double click on the object to put in isolation mode. In that mode only that object is editable.(click the gray bar above to get out of isolation mode or press escape key)
    When using the direct selection tool make sure there is not a plus side of the cursor, if there is that's the wrong tool. (just press the lowercase a on keyboard)
    To join to end points(they must be end points and only two points are allowed at a time)
    Use the direct selection tool (lowercase a)
    Select one point
    Hold shift and select second point
    Object>Path>Join (ctrl-j on windows and cmd-j on mac) or if you have a two button mouse you can right click and choose join from the menu.

  • I scanned an image and want to use the image trace tool, but it doesn't pick up all the lines.  Is there a way to darken the lines before using the image trace tool?

    I scanned an image and want to use the image trace tool, but it doesn't pick up all the lines.  Is there a way to darken the lines before using the image trace tool?  Help!

    If the scan is in B&W, then play with the Threshold setting here
    If it's in Color, then you will have to open the scan in a Raster editing software (like Photoshop) and play with the Brightness/Contrast settings to make the lines bolder.

  • Problem with Image Trace

    Ok so I used Image Trace on a .jpeg logo. The logo is black rectangle with white text in it. My problem is that when I traced it, the black space became the object and the letters are negative space. Is there a way to turn the letters into objects?

    make sure "ignore white" is not selected in the tracing options.

  • Where is the "threshold" setting for Image Trace in Illustrator CC 18.1.0?

    I'm using IIlustrator CC 18.1.0 and when I use Image Trace the "threshold" slider is gone. This was actually the single most important adjustment for this tool. Is it hidden somewhere? I attached a screen shoot of my Image Trace window...

  • Action batch export issue with image trace

    So, currently I'm working on batch processing jpeg sequences using illustrator's image trace and distortion effects. I have batch exported the image traces of the sequences via Adobe bridge.  Now I'm trying to create an action which opens the .ai files containing those image traces, apply a graphic style to the trace, and export a png from that.  I'm banging my head against the wall trying to get this to work right now. If I do the steps (step by step... not using a recorded action) I want on a single file, it works great, but the moment I batch export using the action I've created, it puts the original .png image that the image trace was linked to, on top of the image. The result is a bunch of .png exports that look exactly like my original image sequence.  If I add a "save" function to the action and open the resulting .ai files, I can see that the image trace vectors are in the file. The "linked png" however visible on the layer above those vectors.  Anyone have any idea what I'm doing wrong? How do I get rid of that pesky linked image.
    Also, for anyone who might be thinking that it has something to do with expanding the image trace before applying effects, this issue I'm running into, I've determined, is happening higher up in the hierarchy of the actions... If I simply make an action to open the image trace illustrator file and save it back out, the same issue occurs... placing the .png "linked file" on top of the vector image.
    While I'm at it, I might as well ask if anyone knows how to change the illustrator default image trace preset.... Without being able to change it, or much less specify in the action sequence that I'd like to use a user created image trace preset rather than the default setting, it's greatly overcomplicating my workflow. Makes what could easily be one-step batch processing into two. Seems pretty silly if you ask me.
    Please, if you guys have any insights on this, let me know. It's super frustrating... By the way, if you're wondering what type of effect I'm going for, the idea (as well as some explanation into their own process) starts at 12:44 of this video (http://vimeo.com/77427470).
    THANKS!

    Just wanted to let you guys know, for anyone who might be having my same issue... My home computer, even after a fresh install of Illustrator, was still placing the linked jpeg over the traced vector shapes when batch exporting... I did however find a workaround.  Rather than using Bridge CS6 for the batch image tracing, I used Bridge CS5 to trace in Illustrator CS5. Then, I used Illustrator CS6 to batch export an action that imported and applied an effect to those image traced sequences.  When you do this, it forces you to expand the tracing on import (because of the difference in Illustrator versions I'm assuming).  This way, when you batch run the action, it's already working with expanded vector shapes.  Not sure why this works, but it does.
    Also, I was having some issues getting Illustrator to apply the graphic style when batch exporting. I got it to work by copying an object with that particular graphic style to the clipboard, then adding in the action I was running a "paste" command, followed by a "clear" command.  I can only assume that Illustrator was having issues loading custom graphics styles while batch exporting. The paste/delete technique is annoying, but gets it done.
    Anyways. Just wanted to check in on this one. I'm happy I was able to muscle my way through it all.

  • Image Trace, high resolution

    What are some tips for getting a clean (high definition, full color) Image Trace on a photo?

    Like Monika said.  But use the image trace panel in the windows tab.  There are advanced features that you can adjust and tweak to your liking.  Image trace tends to be specific to the photo so you'll need to play around a little bit to get the desired effect you want.  

  • Illustrator Image Trace doesn't work with large images

    Illustrator's Image Trace doesn't seem to work at all with large images.  The attached image shows the following:
    A) The original raster cropped tightly.
    B) Converting the raster with default "Black and White Logo" settings.  Results in 242 paths and 4792 anchors.
    C) Adding a massive amount of white space and then converting the raster with default "Black and White Logo" settings.  Results in 407 paths and 1620 anchors.
    For whatever reason Illustrator can't seem to handle large images.  This test shows it's not an issue with the image being too complex since all I've done is add white space and the file was saved without compression so there should be no noise.
    This type of glitch started with CS6 with the new Image Trace tool.  Is there a fix for this?  Maybe setting Image Trace into legacy mode?

    Moving to Illustrator forum.

  • Image Trace with Document Library palette feature - bug?

    I've been trying out the different palette options in Image Trace and I believe I've come across a feature that does not work as the designers intended. In Adobe's documentation, there is very little said about the feature, which I believe is intended to allow you to substitute a custom palette for the palette that would be created by the original artwork that is being traced. It's under the Palette drop-down menu and is available if you've selected the Color Mode. It's called Document Library. In Adobe's documentation, there are these two paragraphs:
    [Reproduced from http://helpx.adobe.com/illustrator/using/image-trace.html#tracing_options]
    Palette
    Specifies a palette for generating a color or grayscale tracing from the original image. (This option is available only when Mode is set to Color or Grayscale.)
    To let Illustrator determine the colors in the tracing, select Automatic.To use the document swatches as a palette for the tracing, select Document Library.
    This would be a great feature, if it worked! I have a lot of artwork to trace, it's all in a set yellow-to-green palette, and it would be a big time-saver if I didn't have to change the palette after the trace. Unfortunately, the feature doesn't work as promised. Either that, or I'm doing something wrong.
    I've embedded a video to demonstrate the problem, and would appreciate any comments.
    Message was edited by: pixelboss to include link to the documentation

    What I started with:
    What I expected
    (but in a different palette):
    What I got:
    Do I really need to describe what I don't like about these results?
    Since the original experiment, I have tinkered with it and discovered that the more colors I have in my palette, the better. I had three colors; it only used one of the three. With some settings changes I could get it to use two. With six colors, it used four. I was unable to get it to use all six.
    I apologize for the poor quality of the original rendering of the video. I have since re-rendered it. Embedded below, but if you still cannot see what is going on, I recommend you click on the direct link and go to YouTube, where you will be able to either use the Large Player feature or make the video full-screen. Hopefully that will make it possible to see more detail.

  • How to avoid transparent background converting to white in smart object(psb )when image trace High Fidelity as we have the option of ignore white upto 16 colors trace.

    i have a psd image file in photoshop cc 2014 that has transparent background layer. I wanted it to convert to vector. The best option i saw was to first convert it to smart object in photoshop via Layer->Smart Objects-> Convert to smart Object. then exported it to a psb. Then i opened the file in illustrator and applied the image trace tool but the transparent background got converted to white but i had the option of ignore white upto 16 colors trace. But in case of High Fidelity Conversion, the ignore white option is not available, what should I do now?

    after using  high fidelity image trace  i hit expand, then i went to layers and hit the drop arrow by my thumbnail, which then shows <Group>,hit that drop arrow and it will show a list of all your paths, the very bottom one was my white background, you can click the eye or delete that path and it disappeared for me. i was using a png file with a transparent background, and nothing else worked for me, it always converted with white background, i never saw this mentioned anywhere, and accidentally discovered it, hope it works!!!

  • Preserving 'White' areas, but not backgrounds, in an image trace

    Hi there all
    I've got a little graphic that I'm working on at the moment. I am trying to trace it using the Image Trace feature in illustrator.
    Everything's hunky dory apart from the fact that the original graphic has a lot of white features on it that I want to preserve. These white bits are not bordered so, in the main page of illustrator, they merge with the white background. When I go to use Image Trace, I can either select "Ignore white" which leaves out all of this white detailing, or I can deselect it which means that the trace then includes the white background and the whole image is set into an annoying box.
    Does anyone know how I can remedy this? I know in Photoshop, there's that checked background that shows when your work surface is empty. Is there a way of getting this same thing in Illustrator?
    Thanks!
    CF

    CF,
    It rather depends on the image.
    With Illy, you can use View>Show Transparency Grid or View>Show Grid to see whether there is a background, just as in Photoshop.
    In that way you can get rid of that non colour appearing as white, but it will not be included in Image Trace because it is not (included in the image).
    But if the image itself contains a white background, Image Trace will be unable to discern that from any other part of the image.
    So you may need to have the image in a format without the white background, such as PNG24 instead of JPEG, or with another colour as background.

  • Break Apart A Vector Created in Image Trace? CS6

    I realize this is probably simple, but I have taken a simple graphic pattern jpeg and I've used image trace to trace it in Illustrator CS6.
    But when I try and select parts of the vector is just selects the entire image in a single big box.
    How can I break it apart so that the individual vector parts and be copied, pasted, edited and so on?
    Thanks,
    Mark

    You need to "Expand" it and then "ungroup" to select the different section in the image

  • Going from PSD file to Illustrator image trace: Background not transparent

    Okay guys so a friend has drawn me a "man" in Psd and I want to convert it in AI because I don't want it to look very pixely (great scientific term). The man is on a transparent layer as below:
    I was then able to bring it into illustrator fine. I used the image trace function and got some great results. The image looks more as I intended.(below). The only problem is the transparent layer goes and is replaced by a white layer. This "man" needs to be placed on top of other elements and so the bg needs to be transparent. I've scoured the forums but couldn't find a conversion topic specific to the image trace function. Is there a way to do this without the bg turning white? Am I importing the file wrong into illustrator? Is it the settings of the image trace function? I'm very new to illustrator so would very much appreciate all the help I can get.
    Cheers,
    Cam.               

    look at your trace settings and (in CS5 at least) tick Ignore white.

  • Pantones and Image Trace

    A bug? In teaching Image Trace for a 2-color flier that will  print using Pantone Spot colors , I have found that AI will let you specify using Pantone Spot Colors in the Image Trace panel (Palette> choose Document Library and under Colors choose the color group you've made of your Pantones). BUT the resulting colors are defined with CMYK values and will not separate correctly. I have tried this in CC and CS6 with the same results. Guess this is not a question, but rather a report on a problem. Is there another place to tell Adobe about this issue?

    Hello Mike,
    the crashes are permanent, every time I click the graphic styles window and it happens on new and old Documents, doesn't matter.
    I deleted the "new" and "custom" graphic styles in the application folder so that they are back to default, which ex helped with PS.
    Preferences already resettet and after a clean install they are usually clean.
    Thank you anyway for your response!

Maybe you are looking for