When Scaling Image, Cannot See All Of Image

I want to allow the user to zoom into an image.
Using drawImage(Image img, int x, int y, int width, int height, ImageObserver observer) achieves this, however it displays the scaledImage on background that is of the same size as the original image.
ie, If the Image is 500x500, and I scale it down to 250x250, I see gray space occupying the remaining 500x500 space. If I scale it up to 1000x1000, I only see the part of the image that exist within the 500x500 space.
I assume I need to change a size somewhere, but nothing I have tried has worked. Any suggestions, thanks.

Just guessing :
- are you sure that your image component returns an updated (with respect to the current scale) Dimension in getPreferredSize?
- are you calling myComponent.revalidate() (or validate()) , myComponent.repaint() when changing the scale?

Similar Messages

  • Cannot see all my images in Library after LR 4 upgrade

    Firstly let me explain that when it comes to LR and catalogues I am a positive newbie, I just use LR to tweak images, and I am not very organised. So excuse the iffy terminology below.
    When I used LR3.6 The Library option listed all my files on the left hand side under 'Folder' and showed a sub-folder for each year 2009-2012. I have now upgraded to LR4, and all I can see is 2011. During the install process of LR$ it asked me if I wanted to upgrade the process model, which I said yes and it did. Then, because I had read that 4.1 fixed a lot of issues, I downloaded and installed RC4.1 which I am running now.
    How do I make LR4 show me all my Folders? I don't think I should be re-importing them all.
    Thanks in anticipation, and soryy for the vagueries above.

    Oh, this is probably relevant....
    In Library view, the files that are in the 2011 folder are all called DSC00nn-2.NEF ie now have -2 appended to the name.
    If I try to add an existing Folder, ie 201, it takes me to Import, and wants to Import the whole lot. ie they are all checked.
    Looks like my catalogue is broken, and my worry is all my old edits are lost too.

  • When i preview my site all my images disappear but they work in dreamweaver?

    When i preview my site all my images disappear but they work in dreamweaver? No broken links i can see them clearly in dreamweaver but i cant see them on the prieview in my browser, its just happened all of a sudden.

    Im keeping my files in one folder if thats whay you mean, all sorted properly,
    here is an example of just one of the images code:
    <div style="padding-bottom:63.84096145629883%;" class="image-block-wrapper   " data-description="">
                                                      <noscript><img src="thecounterhomescreen.jpg"  alt="thecounterhomescreen.jpg"  /></noscript><img class="thumb-image" alt="thecounterhomescreen.jpg" data-src="thecounterhomescreen.jpg" data-image="thecounterhomescreen.jpg" data-image-dimensions="1333x851" data-image-focal-point="0.5,0.5" data-load="false" data-image-id="529232e4e4b0838eb29bdf53" data-type="image" />
                                            </div>
    its not just one image, its happened to every sub page ive done it worked fine less than an hour ago.
    All code is valid

  • When I go into my email account through Safari, I cannot see all of my messages.  26 may show on the screen but it says I have 32.  However, at the bottom right it appears as if all the messages are showing and the arrow to get more is not highlighted.

    When I go to my email account through Safari, I cannot see all of my messages.  It says there are 34 but I can only see 26.   However, at the bottom right  the arrows to go to the next screen are not highlighted?  I also cannot scroll any further down.  Does anyone know how to scroll down to see all of my messages?  I use Travel-net Communications as my email provider (Ottawa, On, Canada).

    hey ,
    if it is showing you 34 mails them it is correct. when you see your mail. apple has a smart way of arranging your mail.suppose you recieve 4 mails from one email id it will show you under one highlighted mail. so when you open a mail from anyone trying scrolling it down and you will find your missing mails.

  • My picture files open up off center so I cannot see all of the bottom part of the picture.

    Hi,
    My picture files open up off center so I cannot see all of the bottom part of the picture. The ruler across the top read "0" to 13.5". Down the left side of the picture the ruler reads 3", 2",1", 0, 1", 2",3" etc. This leaves a three inch empty space at the top of my viewing area and I lose three inches of the bottom of my picture. I cannot figure out how to adjust this. I have tried the screen modes  and they do not fix my problem.  What can I do to solve this problem?

    Please provide sensible details about your platform, exact version of your OS, exact version of Photoshop, complete details baout your setup, hardware details, monitor resolution, etc.
    Please read this FAQ for advice on how to ask your questions correctly for quicker and better answers: 
    http://forums.adobe.com/thread/419981?tstart=0
    Thanks!

  • PSE 8.0 Cannot See All Tools

    Good Day Eveyone:
    I cannot see all the tools that are listed in PSE Help for PSE 8.0.  For example Healing Tool - I only see the Spot Healing Tool on side of my screen.  I do not see both clone tools.  How do I get these other tools listed?  Thanks.
    http://help.adobe.com/en_US/PhotoshopElements/8.0/Win/Using//WSae2ea3b149d0c3591ae939f1038 60b3d59-7e2a_WIN.html
    Thanks Robert

    Thanks Anyway but I just found it.

  • Cannot see all folder in share drive

    I had a PC (WIN7) with share drive network. The problem is i cannot see all folders in share directory (total 68 folders), it's show 38 only in my MBP 10.6.7. But seems without any problem in TIGER or other PC. I had to try re-install, but still got same problem!
    Anyone else experiencing the same? Any suggestions as to a fix?

    Hi, a couple of ideas...
    The Vanishing Startup Drive or Folders by Pink Mutant/Francine Schwieder...
    http://pinkmutant.com/articles/invisible.html
    I wonder if ACLs got enabled on those other drives?
    http://x704.net/bbs/viewtopic.php?f=12&t=2180&p=26242

  • Error when i click on 'See all' when browsing podcasts on itunes

    Right on my iphone i click on iTunes > More > Podcasts > Catagories > Technology ..
    it displays a few results.. and when i click on See All i get an error "Your request could not be completed"
    I have tried it using both wifi and 3g..
    I also have a ipod touch 2g .. and the same thing happens..
    This was working fine last week..
    Any ideas??
    Thanks

    I wish I had a solution for you. I have had the same problem since I upgraded my iPod touch to 3.1.2. It also nuked my podcasts. What a headache.

  • I cannot see all preferences options

    Hello
    I'm new to flash pro CC but I've already worked in flash...
    I'm animating a sequence and would like to activate the span based selection but I cannot see all the options in the preferences menu.
    How can I get to see all the options in the preferences menu?
    (sorry if there are some mistakes I'm french)

    Hi Brice,
    Which version of DW are you using? Which OS? Have you experienced this issue before or is this your first encounter?
    As  a first step, I suggest you try recreating Preferences (Re-create preferences) and see if that helps.
    Thanks,
    Preran

  • My iPod Touch icons are large and I cannot see all of them, touching the screen does not make them return to normal. It is charged and was updated over the weekend.

    my iPod Touch icons are large and I cannot see all of them, touching the screen does not make them return to normal. It is charged and was updated over the weekend. What do I need to do to fix this?

    never found the answer by looking at a similar q on the right...thanks anyway!!

  • TS3274 Somehow the information on my iPad is too large and i cannot see all the icons at once. How do I go back to the normal size? all the icons. How can I resize the infor on scren?

    Somehow the information on my iPad is too large and i cannot see all the icons at once. How do I go back to the normal size?

    Have you tried resetting your device? http://support.apple.com/kb/ht1430

  • Use firefox cannot open cpanel of a domain name and cannot see all image of a url when use firefoz to open that url

    Use firefox to open one cpanel of a domain name but can open at safari or IE
    Use firefox browser to open one url, all the image of this url cannot see but can see at safari or IE?
    Vivien Chan
    [email protected]

    You can use these steps to check if images are blocked:
    *Open the web page that has the images missing in a browser tab.
    *Click the website favicon ([[Site Identity Button]]) on the left end of the location bar.
    *Click the "More Information" button to open the "Page Info" window with the Security tab selected (also accessible via "Tools > Page Info").
    *Go to the <i>Media</i> tab of the "Tools > Page Info" window.
    *Select the first image link and scroll down through the list with the Down arrow key.
    *If an image in the list is grayed and there is a check-mark in the box "<i>Block Images from...</i>" then remove that mark to unblock the images from that domain.
    *http://kb.mozillazine.org/Images_or_animations_do_not_load
    *https://support.mozilla.com/kb/Images+or+animations+do+not+show
    See also:
    *http://kb.mozillazine.org/Error_loading_websites
    *https://support.mozilla.com/kb/Error+loading+web+sites

  • Cannot see encrypted disk image in ML

    I created an encrypted disk image (password protected folder) through Disk Utility in Snow Leopard. However, now that I have upgraded to Mountain Lion, that folder appears to have vanished or is invisible. All my other file are intact but I just cannot see this encrypted folder anymore.
    Anyone else having the same experience or able to offer some pointers?
    Thanks,
    Peter

    There would be no reason for Mountain Lion to hide it. That's not normal behavior. Mountain Lion follows the same rules in this regard that Snow Leopard did. But, you can certainly check to see if it has somehow become accidentally hidden by entering the following command into the Terminal (but don't press return yet):
    ls -al
    Make sure there's a space at the end, and then drag the folder in which the .dmg file used to reside onto the Terminal window. This will enter the path to that folder in the command. Now switch back to the Terminal and press return. Do you see the .dmg file in the listing? If so, copy and paste the Terminal output into a message here, and I can give you a command that will show that file again.
    If it's not there, it must have been accidentally deleted. (Again, not normal behavior, so most likely either it was accidentally deleted by you or someone else who uses that machine or the hard drive is badly corrupt and files are going missing.) Do you have a backup of that file?

  • When browsing documente library contents from client application, cannot see all files

    We are currently running SharePoint 2010 Enterprise in a small environment. On one of my sites, I have a document library with various documents uploaded (docx, xlsx, pdf). I am unable to see all the documents when browsing the library from Word/Excel/Adobe
    Acrobat. For example:
    - At the root level of the library, I have 5 folders
    - In Folder 1, I have 10 PDF files
    - If I go into Adobe Acrobat 11, for example, and paste the address of my site in, I can see the library and I can click on it and see the 5 folders.  If I click on Folder 1, there are no PDFs listed.  Even changing File Type to "All Files"
    still returns 0 results
    Things I have tested:
    If I view the library in the browser, I can see the 10 PDFs in Folder 1.  They are not checked out and they are visible to everyone
    If I click Library>Open w/ Explorer, I can see all 10 PDFs in Folder 1
    If I try using other client applications (Word, Excel, etc..), I cannot see any files in Folder 1, even when I change the File Type to "All Files"
    If I click in some of the other Folders in the same library from within a client application, sometimes I can see the files but most times I cannot
    What could be causing this?  I do not see any errors in any of the event logs.

    Hi Sephiroth,
    I think my observation is when you browse from word/Excel/Adobe it is taking your local system credentials and so  not showing files when you access.
    local system account means the account which you used to login to the system.
    For example,you logged into the system as contosomo\xyz and you are trying to connect to the site using Contosomo\setup account,what my point is though you logged in to the site using the setup account site is taking your xyz account credentials and so it
    not showing any files as xyz obviously will not have access.
    To confirm this, you can try by giving atleast read access to the local system account (in this case xyz) to the library and then test again whether you are able to see the files or not.
    Please remember to mark your question as answered &Vote helpful,if this solves/helps your problem.
    s p kumar

  • Exchange 2013 EAC Service Pack 1 New mailbox cannot see all OUs when selecting Browse with "Exchange Organization Management " permissions

    Single forest 2 Domains. When I go to create a new mailbox in the Exchange Admin  Centre and "Browse" the Organizational Unit. I can only see a few OU in the Parent Domain and most in the Child Domain. I have tried "expand All" and
    cannot see anywhere in the EAC to set a "Recipient Scope". The account I am using has "Exchange Organization Management " rights and is a Domain Admin as well.
    The Exchange servers are members of the Root Domain.
    In the "Select an Organizational Unit" menu there is a message "There are more results available than are currently displayed". I have tried searching as well and cannot find OUs that I should be able to.
    All the servers have had Exchange 2013 Service pack 1 installed.
    Any suggestions?
    Regards,
    John

    Changing that setting resulted in the ECP site being inaccessible. So I changed it back
    I have copied the user accounts to test with.
    Originals:
    User1: can see OU's when making a new user through the ECP (access: domain, exchange recipient admin)
    User2: cannot. (Enterprise, domain, exchange, schema admin)
    Test users:
    test user1: copied from user 1, cannot see any OU's when creating a new user.
    test user2: copied from user 2, can see all OU's when creating a new user.

Maybe you are looking for

  • Question Mark instead of video - Frustrated

    Hi All I hope someone can help fix this problem. I am having problems opening videos on the web with quicktime player 10.0(118) when trying to view them on Safari 10.6.6. I can open the videos fine on Firefox but not on Safari. I have searched everyw

  • Finder shows incorrect modification date

    Another horrible finder bug. It showed a wrong modification date for a pdf file that I had just changed. The date shown was 22 januari, but the correct date, which was displayed only after relauching finder, was 18 februari. The shell command "ls -al

  • Forefox won't open links in a new tab, they open in a new window instead.

    I just updated to the newest version of Firefox (says 3.6.11 in "About Firefox"). Links now open in new windows instead of tabs in the same browser window. My settings are set to do this but it doesn't work. Someone said the AskToolbar extension was

  • Illustrator CS6 - Live Paint Groups

    How do I fill a face in a Live Paint Group with a pattern on a colored background?

  • Adobe Media Server and the Authentication Add-In

    The Authentication Add-In (used to authenticate Adobe Live Media Encoders connecting to FMS) will not install with Adobe Media Server because it looks for Flash Media Server and does not recognise Adobe Media Server. Is there a workaround or a new ve