1. How to Zoom specific area of Image on Canvas in Swing stackoverflow.comI want to Zoom specific area on image. which is selected by the user. image display on canvas using Swing. i already done full image zoom on canvas but can't implement ... |
2. image zoom-in coderanch.comI've never done this. I'd try to construct a new image of whatever size I am displaying using a clipping region of the original image effectively zooming in on the original image. To zoom in some more, repeat using some clipping region of the new image. To zoom out, either maintain a collection of images and step backwards through them, or ... |
3. zoom Image coderanch.com |
4. image zoom coderanch.com |
5. zooming an image / imageicon coderanch.comI have a basic drawing program that uses a imageicon on a jlabel as a canvas. An image is chosen and an icon is created from it to use with seticon.It is drawn onto later by getgraphics and then drawLine etc. Is it possible to zoom the icon of the label using a slider/buttons?? If i could be sent to a ... |
6. Java Swing Code for image zoom in and out. coderanch.comWelcome to the Ranch! If you want to paint an image from the paintComponent method of a component (usually a JPanel), you can use the drawImage of the Graphics object for that. It takes an X and Y position of its top-left corner, and optionally a width and height. If you provide the latter two the image will be scaled to ... |
7. How to Zoom in and Zoom out TYPE_USHORT_565_RGB image java-forums.orgHi Friends, I want to zoom in and Zoom out TYPE_USHORT_565_RGB image. i have tried this by following method. The result is,getting original image when scaling factor is 1,2,3..(only round values).For other values like 1.01...1.1..,getting transparent image. This is my code. Graphics2D g2 = (Graphics2D)g; g2.setRenderingHint(RenderingHints.KEY_INTERPOLATI ON, RenderingHints.VALUE_INTERPOLATION_BILINEAR); g2.setRenderingHint(RenderingHints.KEY_ANTIALIASIN G, RenderingHints.VALUE_ANTIALIAS_ON); ffineTransform tx = AffineTransform.getScaleInstance(m_scale, m_scale); g2.drawImage(image,tx,null); Here,image .gettype() is BufferedImage.TYPE_USHORT_555_RGB. ... |