Placing one image over another

How can I place one image over another image in java?

Draw the bottom image first and then the top image. You would need to extend JComponent's paintComponent() method.

Similar Messages

  • How do I superimpose one image over another

    How do I super impose one image over another?

    Open image A
    Open image B
    On image B, use one of the selection tools, e.g. selection brush, lasso tool, to select the object which you wish to "superimpose"
    Go to Edit menu>copy to put the object on the clipboard
    Go back to image A
    Go to Edit>paste. The object will be on its own layer
    Get the move tool out of the toolbox, and position the object and resize, if indicated

  • Overlay one image over another one.

    Hi,
    I am trying to overlay one image over another one.
    (example ..
    First images 1) This will have complete picture like the passport picture with background
    Second Image 2) This will have some specific parts(background of above) whitened
    Result picture 3) This should have the passport picture with out any background just the person.
    Is this possible using intermedia ??
    Thanks in advance.

    dude, not too sure the dept. of homeland security is going to be cool with doing that.
    unless you can make me a passport from Guam.

  • How to lay one image over another?

    Hi, all:
    I'm trying to draw a square of a given color, and draw a circle of a given thickness and greyscale color. I want to lay the circle over the top of the square. Is that possible given the method below?
        public void draw (SimGraphics g) {
             g.drawBackground(backgroundColor); //background square with given rgb color.
              g.drawOvalBorder(stroke, diskGreyScale); //the overlaid circle with given thickness and greyscale color
        }drawBackground is of course undefined, because I don't exactly know HOW to draw a background for a square like this one. Normally, in my code I'm only calling one draw method. Here, I need to draw two things and put one on top of the other. How would I go about doing that?

    Peter__Lawrey wrote:
    Do you mean like this?
    public void paint(Graphics g) {
    Rectangle bounds = g.getClipBounds();
    g.fillRect(0,0,(int) bounds.getWidth(), (int) bounds.getHeight());
    g.fillOval(0,0,(int) bounds.getWidth(), (int) bounds.getHeight());
    Nope--I need something I can wrap in Graphics2D; the class I'm using (SimGraphics) is a wrapper for Graphics2D. I need (I think--though you can correct me on this) to use the draw methods from Graphics2D. Like this:
    public void makeMyImage (Graphics2D g) {
       g.drawFastRoundRect();
       h.drawOvalBorder();
       Graphics2D myImage = CompositeOrOverlayClassOfSomeFreakingKind(g, h);//g is bottom image; h is top image
    }That looks more like pseudocode, but you get the idea.

  • How to exchange one image for another with a click

    I am brand new to actionscript, so bear with me! I need to create an interactive web-based system which takes the user through steps to assemble something. One of the pages will have images of the tools needed. I want the user to be able to 'tick' off each tool, so that when they click on the image of a specific tool it is replaced by the image faded out and a big red tick over it. essentially it is replacing one image for another when it is clicked on.
    any ideas on the actionscript? Sorry i know this must be basic stuff for you!
    thanks!

    your tool images should be converted to movieclips and given instance names and you should create a red tick movieclip that you assign a class, say RedTick.  you can then use:
    tool1.addEventListener(MouseEvent.CLICK,toolClickF);
    function toolClickF(e:MouseEvent):void{
    var redtick:RedTick=new RedTick();
    addChild(redtick);
    redtick.x=e.currentTarget.x;
    redtick.y=e.currentTarget.y;
    e.currentTarget.alpha=.4;

  • Animated gifs: How to transition (fade) 1 image over another

    Fireworks noob, trying to make an animated gif in CS4, reading/experimenting for hours, searching FW help documentation, Youtube tutes, Google - can't find how to pull off this basic fade.
    6 unique but same sz. jpgs in my .png (default FW worksheet doc), each a different "state" in the states palette. Got the basic timing down, all 6 pop up one after another, but I want transitions - #1 fades into #2, 2 into 3 etc. - possibly 3-4 step fade.
    How?
    Where are the other transitions/effects hidden?
    Doesn't FW have some kind of animation timeline feature where you can click through frame by frame?
    Ready to go back to Gifbuilder...
    TIA!

    Gif animations are for poster-like images. They don't work successfully with JPEGs because the file size ends up enormously large. The best program to use for whast you want to do is Flash. That said, Fireworks has an animation wizard that will fade images for you. Select an image and choose Modify > Symbol > Convert to Symbol. A dialog box will pop up enabling you to choose which type of symbol you wish to create. Choose Animation. From there, just follow the wizard. To fade one image over the other, you'll need to convert the images to symbols and animate them on different states  (frames). Symbol 1 on state 1. Symbol 2 on state 10. Symbol 3 on state 20, for example.

  • Moving layers from one image to another in tabbed windows

    I don't know if it's currently possible, but I've tried every which way.  But I have 8 adjustment layers I want to move from one image
    to another in the tabbed window interface.  Once selected, COPY LAYERS is grayed out.  I tried to ALT + DRAG them to the image tab I wanted to move them to but it never focuses the tab and I cannot move the layers over.

    Well if I knew the feature exists in one way or another, I wouldn't have posted it in the Feature Requests.  It was because it seemed to be absent that I did.
    I enjoy a tab-less experience, however I abhor how PSCS5 handles non-tabbed documents in Windows 7 taskbar.  it opens a unique block for each open document you have.  So if I have 20 images open as I'm slicing up a design, I have 20 Photoshop CS5 blocks at the bottom.
    I don't like the Windows 7 "Taskbar Grouping" because when you click on Photoshop, it doesn't just go to Photoshop like it should, it instead opens up a menu for you to then select Photoshop (and focus it as wanted) or select an open image.
    These all seem to be steps backwards...

  • How do I copy layers from one image to another?

    I am editing figures for a journal and I need arrows for multiple images.  Is there a standard arrow?  I can only see free hand.  If I use a free hand arrow I then want to copy it to the other images for consistency.  How do I copy or share layers between images?

    There are many arrows in the shape tool, or you can set the line tool to have an arrowhead in the tool options. You can copy/paste layers from one image to another, or drag a layer from the layers panel into the main image window of another image and then use the move tool to position it. You can also drag into the thumbnail in the photo bin, but you'll still need to bring the image up to adjust the positioning.

  • How to add an image over another using af:image

    How to add an image over another using af:image
    Thanks,
    Veera

    i have a image which is black strip. i have added that to af:image
    <af:image source="image1" id="image" />
    on the black strip, i need to add company logo.
    how to achieve it.
    Thanks,
    Veera.

  • Using the content aware move tool, I want to move an item from one image to another image but it does not seem to work. I think I need two layers on one document so how do I do this

    Using the content aware move tool, I want to move an item from one image to another image but it does not seem to work. I think I need two layers on one document so how do I do this

    Good day!
    A simple Paste does not work for you?
    It should place the clipboard content as a new Layer which you can then move around.
    If there is any chance that the elements need to be scaled, rotated etc. I would prefer to place them as Smart Objects (File > Place …) and do the masking that is specific to the images themselves in those.
    Regards,
    Pfaffenbichler

  • Paste from one image to another I get 'Paste Path'?

    Photoshop CS4  / Windows 7
    When I try to copy and paste from one image to another I get 'Paste Path' in the layers menu, but no pasted image appears. What have I done? - IM

    You probably have a path selected in the Paths panel in that image (or a Vector Mask active but that's the same thing). Go to the Paths panel and deselect the active path before copying

  • Replacing colour/texture from one image onto another?

    Desperately need some guidance here as this has been driving me nuts....
    I want to use the colour and texture from one photo onto my own design. Now, using the rubber stamp tool I am able only to clone a certain area that moves with the cross hair, but how can I clone a section from one photo and use that as a fill to create another design? In other words, clone a colour from one photo as a colour fill for another design?
    Even using the colour replace tool and selecting source: image I am left with the colour pallette as the destination and cannot use the colour from the image to paint my new image from it.
    Thanks a heap

    If I want to copy a single color from one image to another, here's what I'll do:
    Create a new rectangle in the source image
    With the rectangle selected, use the eyedropper to pick a color from someplace in the source image
    Copy the rectangle and paste it in the destination image
    Select the object I want to color and use the eyedropper tool to select the color from the copied rectangle
    (A layer with rectangles of different colors is sometimes handy for setting up a color scheme and using it consistently.)
    You can also create bitmap patterns to use as fills for vector objects. Fireworks comes with quite a few, but it's easy to add your own. Here are a couple of tutorials
    http://www.entheosweb.com/fireworks/patterns.asp
    http://www.peachpit.com/articles/article.aspx?p=30942&seqNum=4

  • How do I copy one image onto another image?

    How do I copy one image onto another image?

    Lots of ways;  Use the Place command to place a file in another.  Open two files and drag one to the other's window tab, drag an image from bridge onto an open file.  Open an image, press ctrl/cmd-A to select all, the ctrl/com-C to copy the image, the ctrl/cmd-V to paste it into another image.

  • How best to copy keywords from one image to another?

    Hey everyone,
    I can't seem to find a good, obvious way in Bridge CS3 2.1 to copy just the keyword tags from one image to another.
    I realize that one possibility is to create a metadata template for the source image and apply that template to the destination image, but this would be a cumbersome & lame workflow IMHO.
    I also realize that Bridge allows loading and viewing many images simultaneously, and that the same set of keywords can then be applied en masse. I'm sure many users like this workflow, but I'm not one of them. For one thing, this approach is seriously not future-proof. What if the user goes out and takes more photos that fit into those same keyword-categories that were applied to the image group?
    It seems to me that Bridge should allow the user to right-click on the list of applied keywords (at the top of the keywords pane) and see a "copy keywords" command. And then the user should also be able to right-click on an image and see a "paste keywords" command.
    Comments appreciated,
    Thanks,
    Brad

    There are many arrows in the shape tool, or you can set the line tool to have an arrowhead in the tool options. You can copy/paste layers from one image to another, or drag a layer from the layers panel into the main image window of another image and then use the move tool to position it. You can also drag into the thumbnail in the photo bin, but you'll still need to bring the image up to adjust the positioning.

  • The float in windows option is grey and not accessable ? How can I copy from one image to another ? Elements 11

    The float all in windows option is grey and not accessible ? How can I copy from one image to another ? Elements 11

    You really are not getting this.
    "I guess I am still completely shocked that as a parent we can't download something for everyone to use."
    Why do you continue to think this although we keep telling you that this is not the case.
    You do NOT have to purchase anything twice.  You can share the music with as many ipods as you like in your household.
    The ipods are designed to sync with your computer regularly.  You should have been syncing these other ipods with your computer all along, thus transferring the purchases to your computer where that music can be synced to as many ipods as you like.
    Take on of the ipods with the music in it.  Open itunes on your computer.  Plug in the ipod.  Do not sync.  Click File>Transfer Purchases  This will transfer the purchases from the ipod to the computer.  Make sure that you have authorized your account on the computer:  here are directions for that. http://support.apple.com/kb/HT1420
    Unplug the ipod.
    Plug in the other ipod with purchased music.  Do not sync.  Click File>Transfer Purchases  This will transfer purchases from the ipod to the computer.
    You can now plug in any of the ipods, select what you want to sync and sync.
    Have a look at the manual for the ipod.  http://manuals.info.apple.com/en_US/iPod_touch_iOS4_User_Guide.pdf

Maybe you are looking for

  • [Forum FAQ] How do I limit the rendering extension of a report in Report Manager?

    Question: There are scenarios that users need to disable some rendering extensions for some specific report. Since the rendering extension is configured for all report, if we modify anything in rsreportserver.config file, it will apply to all reports

  • Adobe Photoshop CS4 Extended

    I am trying to install Photoshop CS4 extended on my computer running Vista Business without unistalling Photoshop CS3 extended. The installation installed Photoshop CS4, Adobe media, adobe air, Bridge etc but failed to install other components such a

  • PC Suite does not detect my bluetooth stack of blu...

    Hi can somebody help me? I have done all advises and procedures regarding uninstalling and installing in the right order but no result. = = = = = =  My info is: Bluetoothstack : Bluesoleil 2.3.0.0 release 060728  stackversion: 05.04.11.20060622 PC Co

  • Comparisons between Pages, Word, Nisus...

    Hi everyone, I am comparing full-featured word processing programs, because I am finally leaving Word. (Word 2008 is unbelievably ugly and badly designed; it's almost as bad as the infamous Word version 6.) I need a full-featured word processor, and

  • DateField As ItemRenderer

    Im having a problem when i try ot use a datefield as a itemRenderer in a dataGrid. When i click in the datagrid it lets me select and date and works as expect but when i click outside the dataGrid and then click back inside dataGrid it gives me a err