Filling a rectangle space with a photo image in an applet

I'm creating a web page that will display an image of a persons wall and I want to be able to use the mouse to draw a rectangle on the image of the wall and fill the space with a selected photo image.
I have found out that you can use the MousePress and MouseDrag events to draw a rectangle and "paint" the rectangle in a componant inside the applet. But I'm not sure how to fill the rectangle with an image instead of a color. Can someone tell me if there is an AWT or Swing method that can do this?
I was thinking of filling the applet window with a label component and then filling it with the wall image. Then some how using the coordinates given from the drag event to creat a new label component and filling it with the photo image. Hope I'm on the right path. Thanks for all the help.

Great thanks, I looked it up in the docs and I found one that will work for me but I'm not sure how to use the arguements. It's the drawImage method that uses the scalebility. This would work perfect seeing as though the image to be posted will be various sizes. Can any one explain this method in more detail for me. Thanks again.

Similar Messages

  • I need to create 4 A2 boards that print adjacent to one another with a photo image running across all 4 boards.How do I set up the pages so I can see the whole composition together , then print the seperate A2 boards.Do I use illustrator (C3) or Indesign?

    I need to create 4 @ A2 boards that print adjacent to one another (all landscape format) with a photo image running across all 4 boards.How do I set up the pages so I can see the whole composition together , then print the seperate A2 boards? Is it best to use Illustrator(CS3) or Indesign?
    Thanks.

    Re: I need to create 4 A2 boards that print adjacent to one another with a photo image running across all 4 boards.How do I set up the pages so I can see the whole composition together , then print the seperate A2 boards.Do I use illustrator (C3) or Indesign
    If possible, please try Indesign CS 4.

  • How to fill an 8x10 page with the same image for making buttons?

    How do you make a button template using the grid?  How do you import the image onto that, and how do you fill an entire page with the same image ie-  1" circles

    I'm trying to do the same thing but I want 1" squares.  I just upgraded from Elements 6 and I did this
    quite often for pendant necklaces.  I used to go and print individual prints, but the previous options are not there.  ;(
    And the picture package is only showing 20 (2x2) as being the smallest size.  I don't see a custom button.
    Can anyone tell me how to do this?  We're doing these for a fundraiser and I can't even print anymore.
    Thanks,
    Kimberly

  • When I start facebook, sometimes it loads ok. But, since v29, it often loads with no photo images or only some photo images shown..just empty boxes.

    Facebook loads ok as far as text is concerned. But, it often loads without any of the photo images visible. Sometimes it loads with a few of the images visible. When the images are missing there are just empty boxes where the photos should be. I never had this problem until updating to the latest firefox v29. If you guys can't fix this problem, is there any way to revert back to an earlier version of firefox? tht version worked just fine.

    If images are missing then check that you do not block images from some domains.
    *Press the F10 key or tap the Alt key to bring up the hidden Menu bar.
    Check the permissions for the domain in the currently selected tab in "Tools > Page Info > Permissions"
    Check "Tools > Page Info > Media" for blocked images
    *Select the first image link and use the cursor Down key to scroll through the list.
    *If an image in the list is grayed and "<i>Block Images from...</i>" has a checkmark then remove this checkmark to unblock images from this domain.
    Make sure that you do not block (third-party) images, the <b>permissions.default.image</b> pref on the <b>about:config</b> page should be 1.
    Make sure that you haven't enabled a High Contrast theme in the Windows/Mac Accessibility settings.
    Make sure that you allow pages to choose their own colors.
    *Tools > Options > Content : Fonts & Colors > Colors : [X] "Allow pages to choose their own colors, instead of my selections above"
    Note that these settings affect background images.
    See also:
    *http://kb.mozillazine.org/Website_colors_are_wrong
    There are extensions like Adblock Plus (Firefox/Tools > Add-ons > Extensions) and security software (firewall, anti-virus) that can block images and other content.
    See also:
    *https://support.mozilla.org/kb/Troubleshooting+extensions+and+themes
    *http://kb.mozillazine.org/Images_or_animations_do_not_load
    *http://kb.mozillazine.org/Websites_look_wrong

  • Since i upgraded my ipad to 7.0.2 there is a problem with the  photo images are

    can any one help my ipad photographs are now low quality with the a serious problem with the colours, this has all happened since i upgraded to 7.0.2

    Do the filenames contain special characters, like "ä,ü,..." or white space or are the vry long? Is there anything special about the image format? Try to export the edited versions in that case and reimport it with a different, shorter filename.
    For testing, create a new book with only the images you want to check.
    If this does not fix it, try rebuilding. Depress the option and command keys, launch iPhoto and rebuild the library.

  • Filling out empty space with a div

    http://www.elliotnewman.com/index/test5.html
    Is there a way to automatically fill the space between the two divs: "news" and "basket" with the div "spacer" ? "news" is floating to the left, and "basket" is floating to the right, so I just want the "spacer" to fill this gap.

    Forgive for me for saying this, but your code suffers from a common newbie syndrome called "division-itis"  a tendency to wrap every single page element inside its own division.  This is counter-productive.  You shouldn't use ID except for top level elements such as #header, #navbar, #content, #sidebar, #footer.  Everything else should fit inside one of those divisions.
    IMO your menu would be so much better if you simplified it and used an unordered list instead of all those divisions.
    <ul id="navbar">
    <li><a href="#">HOME</a></li>
    <li><a href="#">ABOUT</a></li>
    <li><a href="#">GALLERY</a></li>
    <li><a href="#">VISUAL EFFECTS</a></li>
    <li><a href="#">PRINT SALES</a></li>
    <li><a href="#">NEWS</a></li>
    <li><a href="#">CONTACT</a> </li>
    </ul>
    Then simply style your list to float:left and remove bullets like so.
    /* BEGIN HORIZONTAL DROP-MENU */
    #navbar ul{
    margin: 0;
    padding:0;
    #navbar li {
    list-style: none;
    font-size: 12px;
    float: left;
    /**LINK STYLES**/
    #navbar li a {text-decoration:none; display:block;}
    #navbar li a:link {color: #CCC}
    #navbar li a:hover,
    #navbar li a:active,
    #navbar li a:focus {color: #FFF; background: #333;}
    You can see a working example here (look at the code to see how it comes together)
    http://alt-web.com/DEMOS/CSS2-Horiz-Drop-Menu.shtml
    Hope this helps,
    Nancy O.
    Alt-Web Design & Publishing
    Web | Graphics | Print | Media  Specialists
    http://alt-web.com/
    http://twitter.com/altweb

  • How to fill the left space with blank rows in jTable?

    I have a master/detail BC4J/JClient application. The jTable has space to display up to 10 detail records. If I currently have 3 detail records, I want to display the three and have 7 blank lines for additional input on the form. Any suggestions on the best way to handle this.
    I think it is a common requirement in an application with a jTable.
    Can anyone give a hint for me to handle that issue best?

    Adding 7 blank lines is impossible and if it was possible it is not the correct way to do what you need to do.
    The appropriate thing is to add a JUNavigatorBar to act on the detail table and by this you will be able to add new lines in the table if needed.
    One more important thing, take care to add your table to a scroller object that will enhance your table with the scrolling ability if you have more lines the table can display.
    hope it helps

  • Needed?  Option to Fill Empty Space with Podcasts When Synching to a Device

    Hello,
    With the new 32 GB capacity of the iPhone 4, I find that I have a lot of remaining space after selecting 10 latest unwatched podcasts. On the other hand, if I select all unwatched podcasts to download, I get a warning that I have exceeded the capacity of the device.
    It would be nice if, in iTunes, the following options existed:
    1. Fill the empty space with selected podcasts
    2. Select 20 unwatched videos from the dropdown (in addition to the other existing options)
    3. Enter the number of podcasts the user wants to download for all podcasts.
    4. Enter the number of each type of podcast the user wants to download.
    There is an option to fill unused space with music, but no similar option for podcasts.
    I have submitted to http://www.apple.com/feedback, but I wonder if anyone else has this issue?

    AC Adam wrote:
    The only way I can think of to work around this might be to dump a lot of photos on the phone when syncing such that they take up an extra amount of space, then manually delete them from the phone interface once I get done. 
    That or add an App or Apps to take up the space.
    I would think there is more eloquent way to do this with through either iTunes or the iPhone.
    Nope.

  • How do you make a rectangle resize with background image?

    I'm trying to add links (transparent rectangles) to a background image that is set with "scale to fit". However when it scales in needs to scale with my links. Can I have the rectangles scale with the background image? If not is there a better way of doing this?

    As I understand. correctly.  You want the rectangles that you have added over background image, (to which links are added) to be responsive in layout within the project, Am I correct ? If yes ! Muse does not implement "Responsive Layout" as defined by a hand coder. For more details refer to : Can you create responsive sites with Adobe Muse?

  • Can I fill a page with a photo?

    I would like to design a page with a photo covering all the space, but when I increase the size, it´s limited to a maximum that doesn´t fill all the page.
    How can I do it?
    Regards.
    Guillermo

    You can put your photo in the browser background.
    Start with a blank page using either "Black" or "White" template.
    Go to the "Page" inspector "Layout" window, select "image fill", choose your image and select "Tile" if necessary or adjust your image size before loading into iWeb.
    From the "Page Background" menu select "Color fill" and, in the color window, reduce the opacity to zero.

  • I need your help with a decision to use iPhoto.  I have been a PC user since the mid 1980's and more recently have used ACDSee to manage my photo images and Photoshop to edit them.  I have used ProShow Gold to create slideshows.  I am comfortable with my

    I need your help with a decision to use iPhoto.  I have been a PC user since the mid 1980’s and more recently have used ACDSee to manage my photo images and Photoshop to edit them.  I have used ProShow Gold to create slideshows.  I am comfortable with my own folder and file naming conventions. I currently have over 23,000 images of which around 60% are scans going back 75 years.  Since I keep a copy of the originals, the storage requirements for over 46,000 images is huge.  180GB plus.
    I now have a Macbook Pro and will add an iMac when the new models arrive.  For my photos, I want to stay with Photoshop which also gives me the Bridge.  The only obvious reason to use iPhoto is to take advantage of Faces and the link to iMovie to make slideshows.  What am I missing and is using iPhoto worth the effort?
    If I choose to use iPhoto, I am not certain whether I need to load the originals and the edited versions. I suspect that just the latter is sufficient.  If I set PhotoShop as my external editor, I presume that iPhoto will keep track of all changes moving forward.  However, over 23,000 images in iPhoto makes me twitchy and they are appear hidden within iPhoto.  In the past, I have experienced syncing problems with, and database errors in, large databases.  If I break up the images into a number of projects, I loose the value of Faces reaching back over time.
    Some guidance and insight would be appreciated.  I have a number of Faces questions which I will save for later. 

    Bridge and Photoshop is a common file-based management system. (Not sure why you'd have used ACDSEE as well as Bridge.) In any event, it's on the way out. You won't be using it in 5 years time.
    Up to this the lack of processing power on your computer left no choice but to organise this way. But file based organisation is as sensible as organising a Shoe Warehouse based on the colour of the boxes. It's also ultimately data-destructive.
    Modern systems are Database driven. Files are managed, Images imported, virtual versions, lossless processing and unlimited editing are the way forward.
    For a Photographer Photoshop is overkill. It's an enormously powerful app, a staple of the Graphic Designers' trade. A Photographer uses maybe 15% to 20% of its capability.
    Apps like iPhoto, Lightroom, Aperture are the way forward - for photographers. There's the 20% of Photoshop that shooters actually use, coupled with management and lossless processing. Pop over to the Aperture or Lightroom forums (on the Adobe site) and one comment shows up over and over again... "Since I started using Aperture/ Lightroom I hardly ever use Photoshop any more..." and if there is a job that these apps can do, then the (much) cheaper Elements will do it.
    The change is not easy though, especially if you have a long-standing and well thought out filing system of your own. The first thing I would strongly advise is that you experiment before making any decisions. So I would create a Library, import 300 or 400 shots and play. You might as well do this in iPhoto to begin with - though if you’re a serious hobbyist or a Pro then you'll find yourself looking further afield pretty soon. iPhoto is good for the family snapper, taking shots at birthdays and sharing them with friends and family.
    Next: If you're going to successfully use these apps you need to make a leap: Your files are not your Photos.
    The illustration I use is as follows: In my iTunes Library I have a file called 'Let_it_Be_The_Beatles.mp3'. So what is that, exactly? It's not the song. The Beatles never wrote an mp3. They wrote a tune and lyrics. They recorded it and a copy of that recording is stored in the mp3 file. So the file is just a container for the recording. That container is designed in a specific way attuned to the characteristics and requirements of the data. Hence, mp3.
    Similarly, that Jpeg is not your photo, it's a container designed to hold that kind of data. iPhoto is all about the data and not about the container. So, regardless of where you choose to store the file, iPhoto will manage the photo, edit the photo, add metadata to the Photo but never touch the file. If you choose to export - unless you specifically choose to export the original - iPhoto will export the Photo into a new container - a new file containing the photo.
    When you process an image in iPhoto the file is never touched, instead your decisions are recorded in the database. When you view the image then the Master is presented with these decisions applied to it. That's why it's lossless. You can also have multiple versions and waste no disk space because they are all just listings in the database.
    These apps replace the Finder (File Browser) for managing your Photos. They become the Go-To app for anything to do with your photos. They replace Bridge too as they become a front-end for Photoshop.
    So, want to use a photo for something - Export it. Choose the format, size and quality you want and there it is. If you're emailing, uploading to websites then these apps have a "good enough for most things" version called the Preview - this will be missing some metadata.
    So it's a big change from a file-based to Photo-based management, from editing files to processing Photos and it's worth thinking it through before you decide.

  • How can I 'fill free space with songs' AND keep some memory free?

    I like the 'automatically fill free space with songs' option, but it leaves me with no room (or very little room) for taking photos and video.  How can I keep some memory free?
    Matthew

    You'll probably need to backup or clone the remaining OS X partition, definitely clone the bootcamp partition then erase and reformat the drive. You'll need a 3rd party app.
    Check out this thread:
    https://discussions.apple.com/message/9076113#9076113

  • "Automatically fill free space with songs" keeps putting me over capacity

    Hi,
    When I select "Automatically fill free space with songs" my ipod touch then goes over capacity by .01gb.
    So I unclick "sync photos" to free up some room and the same thing happens.
    Then, I deleted a bunch of apps I wasn't using. I sync with "Auto-fill" unselected, then turn "auto-fill" back on, and it says I am over capacity again.
    Any tips on this? Thank you!

    Ah, it looks like the solution is here:
    http://discussions.apple.com/thread.jspa?messageID=12209799&#12209799
    And involves going to the summary tab, selecting "manually sync music" then deleting all of my songs and resyncing. That shouldn't take more than 45 minutes. I'll report back if it works.

  • Least (computationally) burdensome method of adding a filled rectangle to a thresholded IMAQ image

    I regret bothering this forum with such a simple question. I am not very proficient in LabView, so every little design consideration takes a very long time for me to solve.
    I am trying to add a filled black rectangle that covers the top quarter of a thresholded image.
    The initial source are grayscale, 8bit images at ~30fps, that are thresholded into black/white. The resulting thresholded image serves as input for an old imaq vi called "IMAQ Basic Particle" (or in other versions of this routine, "IMAQ ComplexParticle"). I'd like to take this 640x480 pixel, 8bit black and white threshold, and just add a solid black rectangle to the top of it before it goes through IMAQ Basic Particle.
    Browsing the forum (before posting!) gave me some ideas:
    draw rect.vi -> picture to pixmap.vi -> unflatten pixmap.vi -> imaq array to image.vi -> then somehow merge this imaq image on top of the initial? (not sure yet which block to use here).
    draw rect.vi ->...-> imaq overlay bitmap.vi.
    or better yet:
    imaq overlay rectangle.vi  -> imaq merge overlay.vi.
    I've spent the most time with the last route, and have one final problem with it. imaq merge overlay.vi seems to output into 32bit rgb, which my particle analysis blocks do not like. The image fed into, and resulting from, the merge overlay.vi is a simple black and white picture so i assume some final conversion of the 32bit rgb image output from Merge Overlay.vi into 8bit will fix this last problem.
    When searching this topic on the forum, I found a thread where someone claimed that merging images was slowing down their routine significantly. So i came to ask: is this a slow process? is there a better way to do this? The overall program is big, and the speed of operation is my principle concern.

    There's a function for that...
    IMAQ Draw in the pixel manipulation palette.
    Regards

  • Even though new photo image shows up in the icon box in the lower corner of the camera screen, the photo did not save to any albums or places on iPhone 5s with ios8.02 update. Happened three times now so I know it is not operator error!

    where did my photo go? Three times now I have taken a photo, and can see the image in the little icon box on the camera screen. I click on the icon to use the photo to share, but the photo is nowhere to be found. Sometimes the image is retrievable but three times today alone, no image came up in camera roll, even though image is in the little icon. What is happening?

    Hello again... I have the 5S with current capacity of 56 GB and available space of 28GB.  (I have several big big rule books and pdf files for work on the phone).  There are currently a total of 1627 photos (yes, I know that's a lot...but there used to be even MORE, and I had no problems before ios 8.02) on the phone, and I have done routine purges and deletes and backups to my PC and the Cloud.
    When I did the first update to ios 8.0, of course, I found out quickly that photostream and camera roll disappeared, but I was smart enough to figure out that the upgrade created the folder "recently added" and I was able to reinstall the Cloud on my PC and my photos are streaming nicely to the PC and my Ipads (two of them) when I get home to wifi.
    Then I did the ios 8.02 upgrade last week.  Used my phone to take photos this past weekend while away on a trip, and darn, one of the photos that I really needed, disappeared.  I thought perhaps that the problem was "operator error" by the person who took the photo of me.  But then last night, I was taking some photos and lo and behold, the same thing happened to me...twice...... the photo image was in the little "icon" box, and I wanted to "share it".  So, I touch the icon of the photo, but the photo did not appear in the "recently added" bunch of photos.  The previous photo was there.  I took another photo, and it appeared normally in the "recently added".  <shrug>. Took a few more photos, and once more... the icon showed the image, but no image was in the "recently added" folder.
    That's all that I know as of now......  today... no problems.  all photos (took about 20) all appeared in "recently added" as they should.
    ~T

Maybe you are looking for