Resizing an Image - how

Hello,
I have an image object, a jpg, which I am displaying as an icon on a JLabel. The problem is that I need to be able to set the size of the image, I cant find a way to do this. Can anyone explain how to set the size of an Image appearing on a JLabel??
Thanks in advance!!

here is a little method from the API that should work for you:
getScaledInstance(int width, int height, int hints)
Creates a scaled version of this image.
it returns a new image scaled to your specifications.

Similar Messages

  • Photoshop CC: Have a template that I moved image into.  Image is too small.  How do I resize the image while in the template?  Or must I go to original image file and resize there again and again until I get the right fit?

    I have a template that I am able to plug different pictures into at different times.  The problem is that when I plug an image into that template, I find that the image is either too big or too small.  Is there a way to plug the image into the template and resize the image (and not the template itself) OR will I have to go to the file with the original image and resize it there and then try to plug it in to the template to see if it fits------and if it does not fit, go back to the original file with the image and resize it again and see if that fits---and so on and so on...........?  I have tried the" image size" option but it's hit or miss------mostly miss!
    Thanks!

    Read up on Smart Objects. It looks like you have no idea as to how to create and use them.
    Jut create a Smart Object from the layer containing whatever it image it is that you are "plugging into your template".  But you do need to learn the application at its most basic levels.
    Photoshop is a professional level application that makes no apologies for its very long and steep learning curve.  You cannot learn Photoshop in a forum, one question at a time.
    Or is it possible that you don't even have Photoshop proper but the stripped-down Photoshop Elements?"
    If the latter is the case, you're in the wrong forum.  This is not the Elements forum.
    Here's the link to the forum you would want if you're working in Elements.:
    https://forums.adobe.com/community/photoshop_elements/content
    If you do have Photoshop proper, please provide the exact version number of that application and of your OS.
    (edited for clarification)

  • How do you resize a image/picture and save it?

    Hello, I know how to resize a image. But how do I save a new image/pictures has Jpeg with new size properties?

    Use File>Save As or File>Save for web. Either of these will create a new document as long as the name is different or is in another folder.

  • How do I resize an image within a drop zone (not the drop zone itself) in motion 5?

    How do I resize an image within a drop zone (not the drop zone itself) in motion 5?

    I think others would be able to help if you describe a little more why you'd like to do this. Given that drop zones are a way of passing images into Motion that you want to manipulate, resizing a drop zone is the equivalent of resizing the image.
    If you're having a problem with an image from Final Cut being too big or too small, select the Drop Zone in the inspector and make sure the Fit parameter is set to 'Fit' - 'Center' will result in images dropped not being scaled to fit the Drop Zone. 'Stretch' will force the dropped image to fill the space defined by the drop zone,
    If the image is already cropped and scaled up in Final Cut Pro, that is the information that Motion gets - you can't scale down the image to see more of the edges that have been cropped off.
    If you want more than one copy of the image passed via the drop zone, use Make Clone Layer from the Object menu.

  • How to resize multiple images?

    I am newbie to RH and would like to know if there is a method /shortcut by which I can resize multiple images?
    Specifically to my project: I have close to 50 tables containing various images and their descriptions. When I insert these images into RH, the original image size is inserted and these images are of various sizes.
    I know how to resize multiple images in Word but not in RH and hence, reaching to higher powers
    I am using RH 9
    Appreciate all your help!

    Hi There, Well the best option is to resize each image individually but if you feel that you can select all images together and the  resize them all at once I am sure that you would like to give a read to this post from forums which talks about this job
    http://forums.adobe.com/thread/466933

  • Resizing an image in iPhoto - HOW?

    iPhoto 09 is a pretty miserable application.
    Does anyone know how to simply resize an image - to a specific size - without having to mail or upload it with iPhoto's best guess for the chosen output?

    Selecting the CROP and CUSTOM constraint crops the image. I am NOT trying to CROP the image, just make the ENTIRE image smaller.
    If you are not trying to Crop the image, why are you selecting Crop?
    let's talk about storing and sorting by DIRECTORY. Date, Keyword, Title, Rating, Manual - WHAT? How about directory/folder?
    You’re rather missing the entire point of iPhoto. The aim is to organise your Photos quite independent of the location of your files. It’s a key distinction, and if you’re not happy with it then iPhoto is not the app for you.
    Once you import the files to iPhoto, forget about them. Use the iPhoto Window and therein you can do everything you need to do with your photos. Then, want to access the files:
    There are many, many ways to access your files in iPhoto:
    *For Users of 10.5 Only*
    You can use any Open / Attach / Browse dialogue. On the left there's a Media heading, your pics can be accessed there. Apple-Click for selecting multiple pics.
    Uploaded with plasq's Skitch!
    You can access the Library from the New Message Window in Mail:
    Uploaded with plasq's Skitch!
    *For users of 10.4 and 10.5* ...
    Many internet sites such as Flickr and SmugMug have plug-ins for accessing the iPhoto Library. If the site you want to use doesn’t then some, one or any of these will also work:
    To upload to a site that does not have an iPhoto Export Plug-in the recommended way is to Select the Pic in the iPhoto Window and go File -> Export and export the pic to the desktop, then upload from there. After the upload you can trash the pic on the desktop. It's only a copy and your original is safe in iPhoto.
    This is also true for emailing with Web-based services. However, if you're using Gmail you can use iPhoto2GMail
    If you use Apple's Mail, Entourage, AOL or Eudora you can email from within iPhoto.
    If you use a Cocoa-based Browser such as Safari, you can drag the pics from the iPhoto Window to the Attach window in the browser.
    *If you want to access the files with iPhoto not running*:
    Create a Media Browser using Automator (takes about 10 seconds) or use this free utility Karelia iMedia Browser
    Other options include:
    1. *Drag and Drop*: Drag a photo from the iPhoto Window to the desktop, there iPhoto will make a full-sized copy of the pic.
    2. *File -> Export*: Select the files in the iPhoto Window and go File -> Export. The dialogue will give you various options, including altering the format, naming the files and changing the size. Again, producing a copy.
    3. *Show File*: Right- (or Control-) Click on a pic and in the resulting dialogue choose 'Show File'. A Finder window will pop open with the file already selected.
    You can set Photoshop (or any image editor) as an external editor in iPhoto. (Preferences -> General -> Edit Photo: Choose from the Drop Down Menu.) This way, when you double click a pic to edit in iPhoto it will open automatically in Photoshop or your Image Editor, and when you save it it's sent back to iPhoto automatically. This is the only way that edits made in another application will be displayed in iPhoto.
    Regards
    TD

  • How to resize display image item?

    How to resize an image in display image item not in column?
    I find a way to resize it in column which similar to this way
    decode(nvl(dbms_lob.getlength(PLAYER_PIC),0),0,null,
    '<img style="border: 4px solid #CCC; -moz-border-radius: 4px; -webkit-border-radius:
    4px;" '||
    'src="'||
    apex_util.get_blob_file_src('P5_PLAYER_PIC',ROWID)||
    '" height="75" width="75" alt="Player Image" title="Player Image" />')
    detail_img
    but when I try to implement it to display image item which I returned the image from the column, I cant resize it this way, or may be I used wrong syntax, can you please help me finding way to resize it with steps?

    I guess it is because of some carriage returns in your dynamic img tag that is being generated may be not, so make sure there are no breaks half-way through he attributes of the img tag.
    decode(nvl(dbms_lob.getlength(PLAYER_PIC),0),0,null, '<img style="border: 4px solid #CCC; -moz-border-radius: 4px; -webkit-border-radius: 4px;" '|| 'src="'|| apex_util.get_blob_file_src('P5_PLAYER_PIC',ROWID)|| '" height="75" width="75" alt="Player Image" title="Player Image" />')  detail_imgand also inspect the element/img to see if the code is rendered correctly
    Thanks

  • How can I resize an image without losing resolution or using the crop tool? I am using Photoshop Elements 13 on a PC.

    How can I resize an image without losing resolution or using the crop tool? I am using Photoshop Elements 13 on a PC.

    Hi Peru Bob,
    I've tried two images, the results were:
    Image 1
    Jpg, original file size 923KB, dimensions 848px x 279px.
    After resizing to 848px x 180px with 72dpi, the file size decreased to 164KB.
    Image 2
    Jpg, original file size 809KB, dimensions 1200px x 1800px.
    After resizing to 668px x 722px with 72dpi, the file size decreased to 307KB.
    So, there seems to be a fair file size loss - is this to be expected?

  • How do I drag to resize an image in Photoshop?

    I recently downloaded Photoshop onto a second computer. I'm not sure if that upgraded Photoshop or left me without some options or something. Now I'm unable to click on a photo and drag the corner to resize the image. Why is that? I use that function a lot and would really like to get it back. Thanks!

    Whenever I try to resize an image by clicking "image size" it only resizes the canvas. Before, I could click on a single photo and drag the corner to resize the image. If I pressed shift while I did it, it would retain the same dimension ratios. If I pressed control while I dragged the corner, it would let you manipulate the shape so that you could kind of make it 3D. If you put your cursor in the right place, it would also let you rotate the image. It won't even do any of that when I type text onto my canvas. It seems like that function is turned off, and I'd like to know how to use it again.
    Maybe I'm saying it wrong. I guess what I really mean is resizing a layer. Like, if I copy and pasted a photo onto a canvas I already have open, I'd want to drag to resize it to fit the canvas.

  • How can to resize an image uploaded in to the smart image

    Hi
        I have an image uploaded into the smartimage from the local file system. How can i resize this file or create a rendition for this image?
    Thanks
    Veena

    Hi
       I got a reference for the same question from Stack Overflow http://stackoverflow.com/questions/14726485/resize-an-image-resource-in-cq5/16728970#16728 970
    I tried the same method
    Resource resourceNew = resource.getResourceResolver().getResource(img.getFileReference());
        Asset asset = resourceNew.adaptTo(Asset.class);
        log.error("asset ****" + asset);
        Layer layer = new Layer(asset.getOriginal().getStream());
        layer.resize(200, 200);
        log.error("layer ****" + layer);
                            Image image = new Image(resource);
        String mimeType = image.getMimeType();
        ByteArrayOutputStream bout = null;
        ByteArrayInputStream bin = null;
        try {
            bout = new ByteArrayOutputStream(2048);
            layer.write(mimeType, 1, bout);
            bin = new ByteArrayInputStream(bout.toByteArray());
            asset.addRendition("resizedImage", bin, mimeType);
    log.error("asset Bin" + asset);
        } finally {
            // close streams ...              
    Where img is my Image object and I was able to create a rendition in the dam.
    But the rendition I am getting is in File format. Is there a way by which i can change it to png format??? any Help will be appreciable..
    Thanks
    Veena

  • How can i resize a image with changing good quality?

    i do not know how to resize a image and display to let the user view immediately.
    I hope somebody can teach me and show the completed coding

    Look at BufferedImage getScaledInstance

  • Am unable to resize fonts, images, or anything that is related to using numerals.  How can this be fixed??

    Am unable to resize fonts, images, or anything that is related to using numerals.  How can this be fixed??

    In full Editor, go to Edit>preferences>General. Look for this:
    Click on it, close Elements, relaunch.

  • Guys, i want to ask on how to resize the images into 1200 pixels wide?

    Guys, i want to ask on how to resize the images into 1200 pixels wide, how to do it? and what are the step by steps on doing that? thank you!!!

    See this link: http://forums.adobe.com/docs/DOC-3691

  • How can I resize my image?

    How can I resize my image to be smaller?

    You asked about changing the file size
    To change the size in Pixels, you use the options at Size in the export dialogue
    Regards
    TD

  • How to resize and image in iPhoto for a favicon on website

    I am trying to add "favicon" to my website and it says it says the image needs to be 16x16 or 32x32 and no larger than 100KB how do i resize the image i want to use to fir these guidlines?

    you go into iphoto then you click on the photo u want to re-size down the bottom there should be 4 icon there should be one saying edit click on that then up the top there are three icon click on the one that says quick fix the click on crop next to the word constrain there is a long bar click on that scroll down it will say custom click on that then put in the size you want the photo to be then u are good to go

Maybe you are looking for

  • Motorola E815, Address Book, iSync 2.1.1, Mac OS 10.4.3

    I just replaced my Motorola v60i which worked perfectly fine with Address Book, iSync, Mac OS X 10.4.3, on a PowerBook G4. I upgraded to the Motorola E815 and although it syncs through Bluetooth it does not sync numbers with wait commands (i.e., 9785

  • Comma Separated Tags from BLT?

    Was reading the help documentation and noticed that there is a way to pass in comma separated tags to a query template: TagName One or more tag names to be queried String Or String List None The name of a tag in the underlying data source.  This para

  • NI ELVISmx Instrument Launcher Error in Windows 7

    I am using windows 7. I have LabView 2011 installed. I also installed NI ELVISmx  4.2.2 but when i try running the Instrument Launcher i get the following error : Description: Stopped working Problem signature: Problem Event Name: CLR20r3 Problem Sig

  • Common test procedures in realtime

    hello guys can any real-time experienced guys share their knowledge about the commom tests they conduct on  SAP BW/BI solution in implementation process.... Thanks and Regards, NR

  • 2.0.1 yeah!!!!

    After a couple of weeks of reading disaster posts about firmware 2.0 I took the plunge with 2.0.1. I had no problems upgrading, but it did take a while....but I was patient and waited it out. Everything seems fine and went to the app store and got so