Zoom out problem

helllo,
i have problem of image quality when i m doing the zoominh operation.
when i was doing the zoom out the quality of the image get blur..
i have nt getign the proper clear image..
bi = compat ? getCompatibleImage(zoomW, zoomH): new BufferedImage(zoomW,zoomH, BufferedImage.TYPE_INT_RGB);
          Graphics2D g = bi.createGraphics();
          g.setRenderingHint(RenderingHints.KEY_RENDERING,RenderingHints.VALUE_RENDER_QUALITY);
          double scaleW = (double)(zoomW)/(double)(prev_width);
               double scaleH = (double)(zoomH)/(double)(prev_height);
               transAtZoom = AffineTransform.getScaleInstance(scaleW,scaleH);
               g.drawRenderedImage(src, transAtZoom);     
this is my code through which i done zoom out..
plz help me in this matter.
Regards,
shruti.

Try changing the RenderingHint to
RenderingHints.KEY_INTERPOLATION
RenderingHints.VALUE_INTERPOLATION_BICUBIC

Similar Messages

  • Problems zooming out with a Flash Banner

    I have created a Flash banner for the home page of my website.  Here is the link to the page I am working on:  http://adirondackvic.org/CSSTest9July2012-2.html
    When I zoom in to increase the size of the web page, the Flash banner rescales automatically.  However, when I zoom out, to decrease the size of the web page, the Flash banner does not automatically rescale.  It remains the same size and you have to hit the refresh button to get it to rescale to fit the newly resized page. 
    Is there a fix for this?  I searched the forum and the web and have not found an answer.  I put a question on this in another forum, but received no responses. I found some discussions of the issue on the web and on this forum, but I was not able to figure out how to incorporate the suggestions into my page.  I tried changing the scale from exactfit to showall, as recommended, but that created a problem with the appearance of the page. (The banner no longer fit properly into the header window.) I also tried (as recommended by one of the entries in this forum) to change width="100%" height="100%" or width="100%" height="auto".  This fixed the problem for Internet Explorer, but then the entire banner disappeared in Firefox. 
    Please help!  I am at my wit's end....  Thank you.  ellen
    Here is the relevant  code:
    <div class="header"><!-- end .header -->
        <object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" width="960" height="100" align="absmiddle" id="FlashID" title="FlashBanner">
          <param name="movie" value="BannerTest16.swf">
          <param name="quality" value="high">
          <param name="wmode" value="opaque">
          <param name="swfversion" value="6.0.65.0">
          <!-- This param tag prompts users with Flash Player 6.0 r65 and higher to download the latest version of Flash Player. Delete it if you don’t want users to see the prompt. -->
          <param name="expressinstall" value="../Scripts/expressInstall.swf">
          <param name="LOOP" value="false">
          <param name="SCALE" value="exactfit">
          <!-- Next object tag is for non-IE browsers. So hide it from IE using IECC. -->
          <!--[if !IE]>-->
          <object data="BannerTest16.swf" type="application/x-shockwave-flash" width="960" height="100" align="absmiddle">
            <!--<![endif]-->
            <param name="quality" value="high">
            <param name="wmode" value="opaque">
            <param name="swfversion" value="6.0.65.0">
            <param name="expressinstall" value="../Scripts/expressInstall.swf">
            <param name="LOOP" value="false">
            <param name="SCALE" value="exactfit">
                  <!-- The browser displays the following alternative content for users with Flash Player 6.0 and older. -->
                  <div>
          <img src="Images/Banner102 -- Saint Regis Mountain from the Barnum Brook Trail --  June 2012-1.jpg" width="960" height="102" alt="Paul Smith's College VIC" align="absmiddle">         
                  </div>
            <!--[if !IE]>-->
          </object>
          <!--<![endif]-->
        </object>
      </div>

    Kevinsoffice wrote:
    iDevices are pretty much dead hardware since they dont support popular flash. How many mac forums are filled with people complaining about Apples choice not to support it. And with much better hardware coming out like the Samsung line there are better choices then iStuff.
    The evidence does not support that position.
    As expected,  Adobe has stopped developing Flash on mobile devices (iOS and Android)
    http://www.businessinsider.com/adobe-to-kill-mobile-flash-starting-august-15-2012-6
    http://www.digitaltrends.com/mobile/adobe-flash-for-android-gone-with-barely-a-whimper/
    Flash is dying, iStuff is alive and well.

  • Problem in getting the image coordinates  when i zoom in or zoom out

    Hi,
    i have doubts with scaling (Zoom in and Zoom out) using following code but when i zoom in want to get the x and y coordinates but im getting resized coordinates , pls do the needful
    public class TiffTest extends JFrame implements MouseListener
    public TiffTest(String filename)
    RenderedImage source= JAI.create("fileload",filename);
    SubsampleBinaryToGrayDescriptor sb=new SubsampleBinaryToGrayDescriptor();
    RenderingHints rh=new RenderingHints(RenderingHints.KEY_ANTIALIASING,RenderingHints.VALUE_ANTIALIAS_DEFAULT);
    RenderedOp op=sb.create(source,new Float(0.5),new Float(0.5),rh);
    JScrollPane scrollPane = new JScrollPane();
    displayjai dj=new displayjai(op);
    scrollPane.setViewportView(dj);
    getContentPane().add(scrollPane,BorderLayout.CENTER);
    int screen_width=(int)this.getToolkit().getScreenSize().getWidth();
    int screen_height=(int)this.getToolkit().getScreenSize().getHeight();
    setVisible(true);
    setSize(screen_width,screen_height);
    setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
    setExtendedState(JFrame.MAXIMIZED_BOTH);
    dj.addMouseListener(this);
    JAI.create("filestore",dj.ima,"god.tif","TIFF");
    public static void main(String s[])
    new TiffTest("1_org.tif");
    public void mouseClicked(MouseEvent e){System.out.println(e.getX()+","+e.getY());}
    public void mousePressed(MouseEvent e){}
    public void mouseReleased(MouseEvent e){}
    public void mouseEntered(MouseEvent e){}
    public void mouseExited(MouseEvent e){}
    class displayjai extends DisplayJAI
    RenderedOp ima;
    public displayjai(RenderedOp inputImage)
    super(inputImage);
    ima=inputImage;
    setPreferredSize(new Dimension(ima.getWidth(),ima.getHeight()));
    System.out.println(inputImage.getWidth()+","+inputImage.getHeight());
    Thankx
    Kannan

    hi all,
    I am getting the image from the server.but the problem is i am getting the Exception as ArrayOutOfBound exception.
    It was displaying the Image for the first time.and when ever it was going for the second time in to the paint method it was displaying the IOException in reading the stream from the connection.
    can anybody give me the solution in rectifying that exception.
    thanks in advance
    lakshman

  • Smart Zoom Problem? Safari keeps zooming OUT.

    Since upgrading to Mountain Lion, I've had a problem with Smart Zoom. Using a Magic Mouse, I'm aware that it's a double tap to zoom in and another to zoom out. I actually like this feature and use it frequently enough that I don't want to have to turn it off to solve my problem.
    The issue is that pages seemingly randomly zoom OUT and the text becomes very small. I do not know what gesture is doing this and it happens ALL the time. If I double tap, it zooms in, but it is the enlarged zoom in, as if I had done it from the normal text size. I have to hit cmd+0 to get it back to normal. It's become very annoying and I can't seem to find any info on it; everything out there is about zooming in, not out.
    Thanks.
    Safari 6.0
    OS X 10.8.0

    This is a definitely a problem and I've now not only noticed it happen on 2 macs but actually waited and monitored until I finally observed it happening WITHOUT ANY MOUSE CONTACT. Having now witnessed it in two different locations with two macs and two mice, it certainly isn't absent-minded tapping!!
    I wonder if the mice have a static problem or are just oversensitive even to something coming near.
    And btw this only started when I on one occasion upgraded to and on another bought Mountain Lion. It's quite random.

  • Is anybody else having problem trying to put a background pic it won't zoom out?!

    Is anybody else having problem trying to put a background pic it won't zoom out?!

    Hi Daguyuluv2nv!
    I have some information for you that might help you with that issue:
    Reduce screen motion - iPhone User Guide
    http://help.apple.com/iphone/7/#/iph11d9baf58
    You'll want to turn that setting off in your iOS device in order to view your background picture the way you desire. Thanks for using the Apple Support Communities!
    Cheers,
    Braden

  • FIrefox Browser ZOOM problem- When I press the 9 number key FIrefox zooms out and when I press a 0 number key Firefox zooms in

    FIrefox Browser problem- Suddenly now when I press the 9 number key (or 6) FIrefox zooms out and when I press a 0 number key Firefox zooms in. This just started happening 2 days ago. I am using a Mac and I have the latest Firefox . No updates of any kind have occurred in the past 4-5 days, so I must have inadvertedly activated this.
    How can I deactivate this?
    Note to Mozilla support: Please do not close this thread- I believe that it most specifically pinpoints the actual problem
    that I am facing, so hopefully I can find others with a similar problem (& solution!)
    The older thread can be ignored/closed.
    Also- I tried to respond to 2 tech support emails that I received, but I was unable to do so.
    (

    Hi lachem, you can't reply by email, you need to return to your thread in order to post a reply. If you need a link: https://support.mozilla.org/questions/1050646
    I'm not a moderator, so I'll just list a link to the earlier discussion: [https://support.mozilla.org/questions/1050032 The Firefox "search for text when I start typing feature" has just stopped working correctly]

  • FIrefox Browser problem- S... when I press 9 FIrefox zooms out? when I press 0 Firefox zooms in?

    FIrefox Browser problem- Suddenly now when I press the 9 number key (or 6) FIrefox zooms out and when I press a 0 number key Firefox zooms in. This just started happening 2 days ago.
    I am using a Mac and I have the latest Firefox . No updates of any kind have occurred in the past 4-5 days, so I must have inadvertedly activated this.
    How can I deactivate this?

    Hi lachem, I guess our comments in your earlier thread didn't solve the problem, but to avoid duplicate threads, let's continue there: [https://support.mozilla.org/questions/1050032 The Firefox "search for text when I start typing feature" has just stopped working correctly].

  • Zoom in or out problems....

    How do I slow down at the end of zooming out or in? I know it can be easily done in After Effects. I tried many things. Constant zoom out looks like it accelerates and sudden stops at the end.
    Thanks,

    You've just got to get the handle set correctly. I agree that it can be hard to do, but it's possible. GO into the area where the keyframes are in the Motion tab and between the scale and rotation areas, pull down the gray bar separating scale and roaation to make the scale area taller. It will be easier to work with the handle. I would smooth the outgoing and incoming keyframes to give yourself more control.

  • I'm having problems with the screen zooming out, extra large font, to the point of not being able to put in my access code or getting to settings.  What is wrong?

    My screen chooses to zoom out, out of the blue to the point that I can't access anything. It also does not respond to trying to shrink the screen with my hand motion. 

    Double tap the screen with three fingers to turn off zoom. If that doesn't work try a reset. Press and hold both the home and power buttons 10-15 seconds till the Apple logo appears. Release both buttons. Wait 15-20 seconds till your iPad starts on it's own.  Then go to settings> general> accessibility> zoom> off.

  • Zooming Out- Panning to Centre Problem

    Is there a way to zoom out without being panned towards the centre? I'm working on the corner of an image and occasionally zoom out to see it in context but the view flies towards the centre so I have to pan back again.

    Yeah that's hard to do and frustrating in photoshop elements.
    (in the full version of photoshop it's much easier by using the bird's eye view)
    It depends on how big you want to see the image when zoomed out but the navigator might do.
    (Window>Navigator)
    Or you could create a new view of your image (Window>Images>New Window) and either have it stay on top by making your zoomed in image a tab and the new window a floating document
    or switch to the zoomed out image and back using Ctrl+Tab.
    Whatever you do to one image will show on the other.
    In case none of the above works in your version, what version of elements and operating system?

  • Zoom in/out problems

    Hi,
    I have a canvas named landscapeZoomer. Inside of this canvas there is a VBox component named c_book, with a FlexBook inside attached dynamically.
    <Canvas id="landscapeZoomer" width="100%" height="100%" verticalScrollPolicy="off" horizontalScrollPolicy="off"
               x="0" y="0" clipContent="true" resize="landscapeZoomer_resizeHandler(event)"
              click="landscapeZoomer_clickHandler(event)" borderColor="#ff00ff" borderStyle="solid">
              <VBox id="c_book" width="100%" height="100%" verticalScrollPolicy="off" horizontalScrollPolicy="off"
                           x="{Math.floor((landscapeZoomer.width - c_book.width) / 2)}"
                           y="{contTituloBook.height + Math.floor((leftPanel.height - contTituloBook.height - contToolBars.height - c_book.height) / 2)}"
                           paddingTop="0" paddingLeft="0" paddingRight="0" paddingBottom="0"
                           visible="true" clipContent="false"
                           borderStyle="none" borderThickness="0">
              </VBox>
    </Canvas>
    I need to do zoom in/out where  I clicked over left or right page. I calculate the value of zoom to fit the clicked page to the width of landscapeZoomer.
    And I he created a point named pCen to center the zoom,  its x coordinate is sitting in the middle of page.
    When i clicking over one page, c_book is resized ok, but it's wrong positioned.
    I use a scale effect to this, but the center of the page is not positioned in the middle of landscapeZoomer canvas.
    protected function landscapeZoomer_clickHandler(event:MouseEvent):void
    var pRef:Point = new Point(event.stageX, event.stageY);
    pRef = landscapeZoomer.globalToLocal(pRef);
    var centro:Number = landscapeZoomer.width / 2;
    var centroPagina:Number = c_book.width / 2;
    var pageLeft:Boolean = (pRef.x < centro)? true: false;
    var scaleAux:Number = 1;
    var autoCenterTransform:Boolean = false;
    //Zoom out
    if ((c_book.scaleX != 1) || (c_book.scaleY != 1))
             scaleAux = 1;
    else
    zoomPrefUsuario = landscapeZoomer.width / centroPagina;
    scaleAux = zoomPrefUsuario;
    autoCenterTransform = false;
    if (!pageLeft
    var pCen:Point = new Point(centro + (centroPagina * 0.5), pRef.y);//centroPagina * 1.5, c_book.height * 0.5);
    pCen = landscapeZoomer.localToGlobal(pCen);//c_book.localToGlobal(pCen);
    c_book.transformX = pCen.x;
    c_book.transformY = pCen.y;
    else
    var pCen:Point = new Point(centro - (centroPagina * 0.5), pRef.y);//centroPagina * 1.5, c_book.height * 0.5);
    pCen = landscapeZoomer.localToGlobal(pCen);//c_book.localToGlobal(pCen);
    c_book.transformX = pCen.x;
    c_book.transformY = pCen.y;
    scaleEffect = new Scale;
    scaleEffect.target = c_book;
    scaleEffect.scaleXTo = scaleAux;
    scaleEffect.scaleYTo = scaleAux;
    scaleEffect.autoCenterTransform = autoCenterTransform;
    scaleEffect.play();

    more informations...
    I try to tell the Scrollbar to adapt to the correct size.. it works nice ONLY as long as I don't scroll!
    When I start scrolling and release my mouse button, scrollbars automatically take back their original size.
    (sorry for my ugly english)
    DF.

  • Firefox box around zoomed out images issue w/ (xf86-video-intel)

    When I zoomout on a page firefox displays a insetted box around my images.
    Most notably in my webmail client, however it happens even on the forums if I zoomout.
    Regualar zoom: http://world.pyther.net/files/Firefox/regular_zoom.png (The way it should look)
    Zoomed Out: http://world.pyther.net/files/Firefox/zoom_out.png (Inset boxes around images)
    This happens with both the offical arch build of firefox and the spookyet build. I have no idea how to fix this, it is very annoying!
    Any help would be great!
    EDIT:
    After doing some more research I have narrowed this down to being an issue with xf86-video-intel. The problem does not happen if I use the xf86-video-vesa driver. I have filed a bug report at https://bugzilla.mozilla.org/show_bug.cgi?id=468366
    Last edited by pyther (2008-12-07 21:37:12)

    Bug reported, anyone thing I need to add anything else?
    https://bugzilla.mozilla.org/show_bug.cgi?id=414928

  • SWF Export, no font showing in Acrobat and zoom border problem (Acrobat & Reader) - Indesign CS6

    Hi Everyone,
    If anyone could help me on this that would be great, I've spent hours on the forums and manuals to no avail.
    I'm making an interactive PDF brochure in Indesign for one of our new products and I'm having issues (actual or perceived??!!) with the SWF export and PDF creation.  I'm placing animations and video in the INDD, exporting it as an SWF (with the text option as Flash Classic Text) and then opening the SWF (not importing to a word doc or anything, just opening the SWF) with Acrobat using the advanced options to import the video resources and to enable the content when the page is opened.  I then save the file as a PDF.  In the PDF everything works as it should, the animations, the buttons, the video plays and so on.  Great.. hmm not quite.
    The trouble I am having is that all the content of the SWF when viewed in Acrobat seems to be getting rasterised/flattened - is this correct?  After the SWF is opened, Acrobat indicates no fonts in the fonts tab in the document properties so when the SWF is zoomed in Acrobat, or the saved PDF in Reader, the font gets pixelated and the document is not searchable/text can not be highlighted.  The images are not selectable either - it is as if the entire page has been flattened to one image.  Is there a way to stop this so that the SWF opened with Acrobat retains the font and individual images like a normal PDF?  Do I have to open the SWF in Flash first to set some parameters or something?  Is there something I am doing wrong when exprting the SWF from Indesign?  I think I have tried about every possible export combination.  When I open the .HMTL (exported at the same time as the SWF from Indesign) in a browser, the same happens.  All the animations work but the text appears to be rasterised/flattened/not searchable.  Sorry if I'm not using the correct terminology.
    I have tried importing the SWF back into another new INDD and exporting that as an interactive PDF but then the video does not work.  I suppose I could try exporting all the individual animations as SWFs, importing them all and trying to get them to work with the video but I can see that will take quite some time and does not seem to be a guaranteed solution from what I have read on the forums - video playback being the issue.
    Another problem is that when the SWF, or saved PDF, is zoomed in Acrobat/Reader between approx 150% and 210% a thick white border appears in the document and the content is squashed into the middle creating a slightly pixelated and narrow page.  When I zoom out from the page I get a small white line on the right hand border at around 70% zoom.  Please see images.  Does anyone have any idea why this is happening and what I can do to fix it?
    On another, sort of related topic, my timing panel went blank yesterday and was not showing any animations in documents that it had been used to order and synch animations on page load as well as new documents.  The panel was blank.  I updated to V8.0.1 and the panel sprang back into life - hope that helps anyone else finding the same problem.
    I am not very familiar with Indesign/Acrobat/Flash so I guess all the above could be what I'm doing or I could be asking  really dumb questions - apologies from a newbie.
    Best,
    Emily

    Hi All,
    I have now pretty much solved all the issues by creating the SWF in Flash rather than Indesign.  I would advise anyone looking to create an interative PDF with animation and interactivity to go with Flash from the start.  While Flash is a little more involved to create the same effects as Indesign, the extra time taken will ensure a more controllable and better looking PDF in terms of text quality, scalability and so on.  Plus you will not spend days trying to get video to work along side imported SWF etc in Indesign.  One of the best controls in Flash is being able to set the stage.scaleMode for the document so the PDF still looks crisp when zooming, no white borders etc.  So, create the .fla, export to .SWF, open the .SWF with Acrobat, modify the advanced settings to enable start on page load and save as a PDF.  If you don't know Flash, I didn't a couple of days ago, watch a couple of tutorials on Youtube.. buttons, tweens, embedding video and you'll be ready.  Don't be put off by ActionScript, there are really handy Code Snippets in CS6 that do all the heavy lifting for you.
    Sorry Indesign!
    Best,
    Em

  • Using scroll wheel with modifier key to zoom out is not working

    I can't zoom out with the magnifying tool selected in all programs of the CS3 suite using the option key on a Mac. I can zoom in with no problem. I've been trying to figure this out for "8 hours" now!!!
    I do have this checked in the system preferences and Photoshop preferences. I don't think this is considered a keyboard shortcut but I do have universal access checked and zoom out checked in the system preferences.
    I searched this site and all of the internet looking for answers but can't seem to find much. I appreciate any help you can give. I'm way behind on my work today.
    Thank you!

    The default key for scrolling zoom is not Command but Control. To change this, go to System Preferences —> Universal Access and click on the Seeing tab. In the Zoom pane, click on the Options button, and in the sheet that drops down, select the text box at the bottom, highlight the character there, then press the modifier key you prefer.
    HTH
    Archie

  • Google maps don't display right, part is good but about half of it says "we are sorry, but we don't have maps at this zoom level for this region." Zooming out doesn't help.

    When displaying a Google map I get about four vertical strips that alternately display good and in gray bands. The gray area displays the message "we are sorry, but we don't have maps at this zoom level for this region." Zooming out doesn't get rid of the gray areas.
    I've had this problem for over a year and get around it by using either MS Internet Explorer or Google Chrome which work Ok. Otherwise Firefox works fine and I use it for everything else except Google Maps.
    I've tried an uninstall of FireFox and then reinstall but it didn't help. I don't remember what I was doing when this problem first showed up.

    You're welcome

Maybe you are looking for

  • Dreamweaver no longer asks to copy image to root folder

    Dreamweaver CS3 on Mac - whenever I copied an image from my "Pictures" folder into a HTML page, it always used to remind me to copy it into my "images" folder within the site and for some reason it no longer does that.  Does anyone know why and how I

  • Airplay causing MacBook Pro to overheat

    When I AirPlay video from the MacBook Pro to the tv, it overheats (fan goes like mad and won't turn off) but if I watch the exact same video on the monitor, it is fine. Do I have a setting wrong here, or is there something that I can do to help with

  • BI 7.0 Migration

    Hi all, I am working at a client implementing BI 7.0 and the client wants to know what approach to take regarding the migration of DataSources, InfoSources, Transfer and Update Rules. The questions can be summarized into the following: 1. Since the d

  • XML Import

    Hello is there a way to import a XML-file with a function module? I know that i can import a XML-file in the webinterface. But we have a requirement to automate this. Thanks for your help

  • ITunes Store and Safari 4.0.3?

    When I launched iTunes 9, it insisted I needed Safari 4.0.3. I downloaded the update from Apple's website, but it refuses to install under 10.5.8. What am I doing wrong?