Zoom into Image; PS Extended CS5
I want to enlarge the pixels of a movie shot in 720p in order to create a clip that shows actual pixels greatly enlarged. But every way I can find ends up enlarging the pixels as mushy detail.
Even when I attempt to change the Image Size with Nearest Neighbor selected --a process that does the job with stills-- I get mush, not large, hard-edge pixels.
Is there some way to make this work with a movie file?
The enlargement factor I want is 500%.
How long is the clip?
If the number of frames is fairly small you could import the movie as layers, upscale those and export as movie again.
Similar Messages
-
Hi everybody,
I'm trying to learn how to zoom images, and I've been able to put together a test program; based on the posts I've seen on this forum (I didn't see anything about zooming in the Java tutorial), I thought it should be working, but it doesn't.
My GUI consists of a JLabel with an icon on it, and a button panel beneath with zoom percentages. When I click on one of the zoom percentage buttons, the image is supposed to zoom in or out to that percent magnification, based on its original size (when the GUI is first created). When I click on the buttons in my test GUI, though, nothing happens to the image.
EDIT: Oh, and I forgot to ask -- is zooming an established image like this the same as zooming a panel on which something has been painted? That's my eventual goal, but I thought it might be easier to learn with an established image first.
Would anyone mind looking at my code, please, and giving me a hand?
Thanks,
Jezzica85
import java.awt.BorderLayout;
import java.awt.Color;
import java.awt.Graphics;
import java.awt.Graphics2D;
import java.awt.GridLayout;
import java.awt.RenderingHints;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
import java.awt.geom.AffineTransform;
import java.io.File;
import javax.imageio.ImageIO;
import javax.swing.BorderFactory;
import javax.swing.ImageIcon;
import javax.swing.JButton;
import javax.swing.JFrame;
import javax.swing.JLabel;
import javax.swing.JPanel;
import javax.swing.JScrollPane;
public class ZoomTest extends JPanel {
private static final long serialVersionUID = 1L; // Serial ID
private ImageIcon icon; // Icon shown as picture
private int zoomFactor; // Factor of zoom (percent--ex 25=25%)
// Constructor
public ZoomTest() throws Exception {
// Set initial zoom factor and read file
zoomFactor = 100;
String file = "C:\\test.bmp";
icon = new ImageIcon( ImageIO.read( new File( file ) ) );
JLabel label = new JLabel();
label.setIcon( icon );
// Add label with picture to scroll pane so zoomed image can be seen
JScrollPane scroller = new JScrollPane( label );
scroller.setHorizontalScrollBarPolicy( JScrollPane.HORIZONTAL_SCROLLBAR_ALWAYS );
scroller.setVerticalScrollBarPolicy( JScrollPane.VERTICAL_SCROLLBAR_ALWAYS );
scroller.setBorder( BorderFactory.createEmptyBorder( 10, 10, 10, 10 ) );
scroller.setOpaque( true );
scroller.setBackground( Color.WHITE );
add( scroller );
// Paint the image
public void paintComponent( Graphics g ) {
super.paintComponent( g );
Graphics2D g2 = (Graphics2D)g;
RenderingHints rh = new RenderingHints(
RenderingHints.KEY_ANTIALIASING,
RenderingHints.VALUE_ANTIALIAS_ON );
g2.setRenderingHints( rh );
AffineTransform at = new AffineTransform();
AffineTransform initial = g2.getTransform();
at.scale( zoomFactor, zoomFactor );
g2.drawImage( icon.getImage(), at, this );
g2.setTransform( initial );
// Set the zoom factor for this panel
public void setZoom( int factor ) { zoomFactor = factor; }
// Main method for testing
public static void main( String args[] ) {
try {
// Add zoomable panel to frame
JFrame frame = new JFrame( "Zoom Test" );
frame.setLayout( new BorderLayout() );
final ZoomTest zoomer = new ZoomTest();
frame.add( zoomer );
// Add button panel with zoom levels
JPanel panel = new JPanel( new GridLayout( 1, 8 ) );
for( int i = 25; i <= 200; i+=25 ) {
final int amount = i;
JButton button = new JButton( Integer.toString( i ) );
button.addActionListener( new ActionListener() {
public void actionPerformed( ActionEvent e ) {
zoomer.setZoom( amount );
zoomer.repaint();
panel.add( button );
frame.add( panel, BorderLayout.SOUTH );
// Set Frame properties
frame.setDefaultCloseOperation( JFrame.EXIT_ON_CLOSE );
frame.pack();
frame.setResizable( false );
frame.setAlwaysOnTop( true );
frame.setLocationRelativeTo( null );
frame.setVisible( true );
catch( Exception e ) {
e.printStackTrace();
System.exit( -1 );
}Edited by: jezzica85 on Dec 12, 2008 11:17 AMSince so many help me here, here is one solution
package com.unittest.images;
import java.awt.BorderLayout;
import java.awt.Graphics;
import java.awt.Graphics2D;
import java.awt.GraphicsConfiguration;
import java.awt.GraphicsEnvironment;
import java.awt.GridLayout;
import java.awt.RenderingHints;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
import java.awt.image.BufferedImage;
import java.io.File;
import javax.imageio.ImageIO;
import javax.swing.JButton;
import javax.swing.JFrame;
import javax.swing.JPanel;
* @author gcaulton
public class Test extends JPanel {
private static final long serialVersionUID = 1L; // Serial ID
private int zoomFactor = 100; // Factor of zoom (percent--ex 25=25%)
private BufferedImage zoomedImage = null;
private BufferedImage originalImage = null;
public Test() {
setOpaque(false);
// Paint the image
public void paintComponent( Graphics g ) {
super.paintComponent( g );
Graphics2D g2 = (Graphics2D)g;
g2.drawImage( zoomImage(), null, 0, 0);
// Set the zoom factor for this panel
public void setZoom( int factor ) {
zoomFactor = factor;
int newWidth = (int) (originalImage.getWidth() * zoomFactor /100.0);
int newHeight = (int) (originalImage.getHeight() * zoomFactor /100.0);
zoomedImage = resizeImage(originalImage, newWidth, newHeight);
// Main method for testing
public static void main( String args[] ) {
try {
// Add zoomable panel to frame
JFrame frame = new JFrame( "Zoom Test" );
frame.setLayout( new BorderLayout() );
final Test zoomer = new Test();
String file = "C:\\test.bmp";
zoomer.originalImage = ImageIO.read( new File( file ));
frame.getContentPane().setLayout(new BorderLayout());
frame.getContentPane().add( zoomer, BorderLayout.CENTER);
// Add button panel with zoom levels
JPanel panel = new JPanel( new GridLayout( 1, 8 ) );
for( int i = 25; i <= 200; i+=25 ) {
final int amount = i;
JButton button = new JButton( Integer.toString( i ) );
button.addActionListener( new ActionListener() {
public void actionPerformed( ActionEvent e ) {
zoomer.setZoom( amount );
zoomer.repaint();
panel.add( button );
frame.add( panel, BorderLayout.SOUTH );
// Set Frame properties
frame.setDefaultCloseOperation( JFrame.EXIT_ON_CLOSE );
frame.setResizable( true );
frame.setAlwaysOnTop( true );
frame.setSize(zoomer.originalImage.getWidth(),zoomer.originalImage.getHeight()+200);
frame.setLocationRelativeTo( null );
frame.setVisible( true );
zoomer.setZoom(100);
catch( Exception e ) {
e.printStackTrace();
System.exit( -1 );
private BufferedImage zoomImage() {
return zoomedImage;
* @param image
* @param newWidth
* @param newHeight
* @return
public static BufferedImage resizeImage(BufferedImage image, int newWidth, int newHeight) {
if (image.getWidth() == newWidth && image.getHeight() == newHeight) {
return image;
} else {
BufferedImage temp = createCompatibleImage(image, newWidth, newHeight);
Graphics2D g2 = temp.createGraphics();
g2.setRenderingHint(RenderingHints.KEY_INTERPOLATION, RenderingHints.VALUE_INTERPOLATION_BILINEAR);
g2.drawImage(image, 0, 0, temp.getWidth(), temp.getHeight(), null);
g2.dispose();
return temp;
public static BufferedImage createCompatibleImage(BufferedImage image, int width, int height) {
GraphicsConfiguration g = GraphicsEnvironment.getLocalGraphicsEnvironment().getDefaultScreenDevice().getDefaultConfiguration();
return g.createCompatibleImage(width, height, image.getTransparency());
} -
Zooming into the center of an image
Hi, I have this code that allows the user to zoom into an image that they have selected. However, when the image is zoomed into using the slider, it goes towards the top left corner of the image rather than the center. How can I modify my code to zoom into the center of the image instead?
import java.awt.*;
import java.awt.geom.AffineTransform;
import java.awt.image.BufferedImage;
import java.io.*;
import javax.imageio.ImageIO;
import javax.swing.*;
import javax.swing.event.*;
public class MapScale extends JPanel
BufferedImage image;
double scale = 1.0;
public MapScale(BufferedImage image)
this.image = image;
protected void paintComponent(Graphics g)
super.paintComponent(g);
Graphics2D g2 = (Graphics2D)g;
g2.setRenderingHint(RenderingHints.KEY_INTERPOLATION, RenderingHints.VALUE_INTERPOLATION_BICUBIC);
double x = (getWidth() - scale*image.getWidth())/2;
double y = (getHeight() - scale*image.getHeight())/2;
AffineTransform at = AffineTransform.getTranslateInstance(x,y);
at.scale(scale, scale);
g2.drawRenderedImage(image, at);
public Dimension getPreferredSize()
int w = (int)(scale*image.getWidth());
int h = (int)(scale*image.getHeight());
return new Dimension(w, h);
private JSlider getSlider()
int min = 1, max = 36;
final JSlider slider = new JSlider(min, max, 16);
slider.setMajorTickSpacing(5);
slider.setMinorTickSpacing(1);
slider.setPaintTicks(true);
slider.setSnapToTicks(true);
slider.setPaintLabels(true);
slider.addChangeListener(new ChangeListener()
public void stateChanged(ChangeEvent e)
int value = slider.getValue();
scale = (value+4)/20.0;
revalidate();
repaint();
return slider;
public static void main(String[] args) throws IOException
JFileChooser selectImage = new JFileChooser();
if (selectImage.showOpenDialog(null) == JFileChooser.APPROVE_OPTION)
String path = selectImage.getSelectedFile().getAbsolutePath();
BufferedImage image = ImageIO.read(new File(path));
MapScale test = new MapScale(image);
JFrame f = new JFrame();
f.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
f.getContentPane().add(new JScrollPane(test));
f.getContentPane().add(test.getSlider(), "Last");
f.setSize(400,400);
f.setLocation(200,200);
f.setVisible(true);
}KGCeltsGev wrote:
Hi, I have this code that allows the user to zoom into an image that they have selected. However, when the image is zoomed into using the slider, it goes towards the top left corner of the image rather than the center. How can I modify my code to zoom into the center of the image instead?Since you use a JScrollPane and change the client size when you zoom in/out you need to scroll to the center every time you zoom in/out.
This is done by using scrollRectToVisible.
slider.addChangeListener(new ChangeListener() {
public void stateChanged(ChangeEvent e) {
int value = slider.getValue();
scale = (value+4)/20.0;
revalidate();
Dimension d = getPreferredSize();
Dimension extentSize = ((JViewport) getParent()).getExtentSize();
scrollRectToVisible(new Rectangle((d.width-extentSize.width)/2, (d.height-extentSize.height)/2, extentSize.width, extentSize.height));
}); -
How to have 2DGraphics zoom into a specific part of an image?
I am trying to mess around with2DGraphics and affinetramsform to zoom into a section of an image but i have no luck doing it. Can someone help me out? Lets say I want to zoom into the coordinates (200,300) and (400,600) . I know DrawImage has a method that does this but does 2DGraphics have it too or affinetransform? I havent see anything like it yet. thanks
import java.awt.*;
import java.awt.event.*;
import java.awt.geom.AffineTransform;
import java.awt.image.BufferedImage;
import java.io.*;
import javax.imageio.ImageIO;
import javax.swing.*;
import javax.swing.event.*;
public class ZoomIt extends JPanel {
BufferedImage image;
Dimension size;
Rectangle clip;
AffineTransform at = new AffineTransform();
public ZoomIt(BufferedImage image) {
this.image = image;
size = new Dimension(image.getWidth(), image.getHeight());
clip = new Rectangle(100,100,200,200);
protected void paintComponent(Graphics g) {
super.paintComponent(g);
Graphics2D g2 = (Graphics2D)g;
g2.setRenderingHint(RenderingHints.KEY_ANTIALIASING,
RenderingHints.VALUE_ANTIALIAS_ON);
g2.drawRenderedImage(image, at);
g2.setColor(Color.red);
g2.draw(clip);
//g2.setPaint(Color.blue);
//g2.draw(at.createTransformedShape(clip));
public Dimension getPreferredSize() {
return size;
private void zoomToClip() {
// Viewport size.
Dimension viewSize = ((JViewport)getParent()).getExtentSize();
// Component dimensions.
int w = getWidth();
int h = getHeight();
// Scale the clip to fit the viewport.
double xScale = (double)viewSize.width/clip.width;
double yScale = (double)viewSize.height/clip.height;
double scale = Math.min(xScale, yScale);
at.setToScale(scale, scale);
size.width = (int)(scale*size.width);
size.height = (int)(scale*size.height);
revalidate();
private void reset() {
at.setToIdentity();
size.setSize(image.getWidth(), image.getHeight());
revalidate();
private JPanel getControlPanel() {
JPanel panel = new JPanel(new GridBagLayout());
GridBagConstraints gbc = new GridBagConstraints();
gbc.weightx = 1.0;
gbc.fill = GridBagConstraints.HORIZONTAL;
gbc.gridwidth = GridBagConstraints.REMAINDER;
panel.add(getZoomControls(), gbc);
panel.add(getClipControls(), gbc);
return panel;
private JPanel getZoomControls() {
final JButton zoom = new JButton("zoom");
final JButton reset = new JButton("reset");
ActionListener al = new ActionListener() {
public void actionPerformed(ActionEvent e) {
JButton button = (JButton)e.getSource();
if(button == zoom)
zoomToClip();
if(button == reset)
reset();
repaint();
zoom.addActionListener(al);
reset.addActionListener(al);
JPanel panel = new JPanel();
panel.add(zoom);
panel.add(reset);
return panel;
private JPanel getClipControls() {
int w = size.width;
int h = size.height;
SpinnerNumberModel xModel = new SpinnerNumberModel(100, 0, w/2, 1);
final JSpinner xSpinner = new JSpinner(xModel);
SpinnerNumberModel yModel = new SpinnerNumberModel(100, 0, h/2, 1);
final JSpinner ySpinner = new JSpinner(yModel);
SpinnerNumberModel wModel = new SpinnerNumberModel(200, 0, w, 1);
final JSpinner wSpinner = new JSpinner(wModel);
SpinnerNumberModel hModel = new SpinnerNumberModel(200, 0, h, 1);
final JSpinner hSpinner = new JSpinner(hModel);
ChangeListener cl = new ChangeListener() {
public void stateChanged(ChangeEvent e) {
JSpinner spinner = (JSpinner)e.getSource();
int value = ((Integer)spinner.getValue()).intValue();
if(spinner == xSpinner)
clip.x = value;
if(spinner == ySpinner)
clip.y = value;
if(spinner == wSpinner)
clip.width = value;
if(spinner == hSpinner)
clip.height = value;
repaint();
JPanel panel = new JPanel(new GridBagLayout());
GridBagConstraints gbc = new GridBagConstraints();
gbc.insets = new Insets(2,2,2,2);
gbc.weightx = 1.0;
addComponents(new JLabel("x"), xSpinner, panel, gbc, cl);
addComponents(new JLabel("y"), ySpinner, panel, gbc, cl);
addComponents(new JLabel("width"), wSpinner, panel, gbc, cl);
addComponents(new JLabel("height"), hSpinner, panel, gbc, cl);
return panel;
private void addComponents(Component c1, JSpinner s, Container c,
GridBagConstraints gbc, ChangeListener cl) {
gbc.anchor = GridBagConstraints.EAST;
c.add(c1, gbc);
gbc.anchor = GridBagConstraints.WEST;
c.add(s, gbc);
s.addChangeListener(cl);
public static void main(String[] args) throws IOException {
String path = "images/owls.jpg";
BufferedImage image = ImageIO.read(new File(path));
ZoomIt test = new ZoomIt(image);
JFrame f = new JFrame();
f.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
f.getContentPane().add(new JScrollPane(test));
f.getContentPane().add(test.getControlPanel(), "Last");
f.pack();
f.setLocationRelativeTo(null);
f.setVisible(true);
} -
Zoom into high resolution image
Hi,
Before starting to learn Muse, I've one big need: zooming into high-resolution images.
I want to show how high the resolution is by letting the viewer zoom in with a loupe (or just scrolling with mouse wheel). I'm not talking about of a slideshow through some crops of the main image, but of an shrink- or grow effect of the image.
Is this possible to achieve?
Thanks for your insight,
DominiqueCould this be the solution, you are looking for?
https://creative.adobe.com/addons/products/2406#.U8Jp1mIaySM -
I want to zoom into digital image pixels.
To demonstrate DSLR chip behavior at high magnification, I want to zoom into the frame and see how individual pixels actually look.
But when I use the Scale tool to enlarge the picture, FCPX thinks I want to avoid seeing pixels so it mushes the image, blurring all the pixels.
How do I get it to stop doing that? Can it be done in Motion?
Photoshop scaling has all these Bicubic options, but it also has the Nearest Neighbor option so I can see individual pixels in the blow up, there. Is there a way to get FCPX to do the same idea?Peter Inova1 wrote:
When you are zooming into a movie that is made in a way to reveal an HDSLR's blown pixels, it would be nice to see them as a pixel map.
again: the actual compression (from any cam!) doesn't deliver single pixels.
it starts on the sensor of the cam - ever heard of the Bayer Filter?
http://en.wikipedia.org/wiki/Bayer_filter
if you could read out the raw data of that chip, you'd notice twice as much green 'dots' than red and blue, oops!
next, your cam compresses '4:2:0'
http://en.wikipedia.org/wiki/4:2:0
that Chroma Subsampling drops 7 of every 8 'color dots' ... most pixels are 'grey'!
finally, it's a lossy codec, working with 'assumptions'
http://en.wikipedia.org/wiki/Inter_frame
picture-prediction .... that's bits, not atoms
on de-coding, final delivery, these 'formulas' are calculated to a 1920x1080 picture ... but that is not the 'pixel reality' from your cam, nor on its sensor, nor in the file.
so, a zoom-to-pixel-level is a special effect, as mentioned above, create a close-up in Photoshop, showing r/g/b- squares … but this is not reality. -
Can you zoom into a ibook image?
Hi, is it possible to zoom into an image that is already full screen -- so that you can check out details in the photo?
It seems to expand up with my fingers on my iPad, however, as soon as I let go of the image, it returns to full size,
so I am not able to zoom in on parts of the image. Is there a way to create images that appear in my ibook that are zoomable?
Thanks,
jkroppThe OP stated that "if I drop my image into a widget, like gallery, I still can't get the image to zoom up...."
As far as I know, gallery images are allowed to be larger precisely so that zooming in is possible without loss of quality.
....so what is your point about telling the OP that he isn't using a widget, when the OP explicitly stated that he is?
Michi. -
Can 3D work from photoshop extended cs5 be transferred into after effects cs4?
Can 3D work from photoshop extended cs5 be transferred into after effects cs4? please help
Why would you post this in the "Photoshop Elements" forum...?
Try here; http://forums.adobe.com/community/aftereffects_general_discussion
or here; http://forums.adobe.com/community/photoshop -
Just purchased CC2015 Lightroom & Photoshop following a 30 day free trial. All worked well during the trial but now I have subscribed to the plan and downloaded the latest LR version I am unable to zoom into the images and just get a constant 'loading' box and spinning circle. Also, the whole system is very slow - very frustrating! Any ideas? I am running it on Windows 8.
MickYou keep asking variants on this same question. You've had replies in all your other threads. If you can't find them, go here and click where it says Activity:
Thomas Cannon Jr. -
How to zoom into a specific part of an image?
I am trying to mess around with2DGraphics and affinetramsform to zoom into a section of an image but i have no luck doing it. Can someone help me out? Lets say I want to zoom into the coordinates (200,300) and (400,600) . I know DrawImage has a method that does this but does 2DGraphics have it too or affinetransform? I havent see anything like it yet. thanks
you could check this
http://www.javareference.com/jrexamples/viewexample.jsp?id=84
it may help you -
Zooming into videoclips and image
Hi I am trying to zoom into a recorded clip but I have problems doing so. Can some suggest a solution? Also can I am interested to zoom in an image. Is the method for zooming into video clips and still picture the same?
*It's been working perfectly... I don't understand why it isn't now—why it needs handles now?*
Because up till now, because of where you've placed in's and out's on the clips, you've had handles.
It's not about the length of the clip. It's about having material available for the transition.
Look at Nick Holmes diagram in this post.
http://discussions.apple.com/thread.jspa?messageID=9157004�
rh -
Can I merge Photoshop CS6 with extended into Photoshop CS4 or CS5 will work together ?
Can I merge Photoshop CS6 with extended into Photoshop CS4 or CS5 will work together ?
Versions of Photoshop have different installation trees and user preferences. You do not merge Photoshop versions. Each version is independent. When you install newer versions of Photoshop the are options to migrate your presets and Preferences. You can start and use any version installed on your machine. For the most part newer version of Photoshop are backwards compatible with older versions of Photoshop. However some changes Adobe make to Photoshop change user interfaces and and the way Photoshop performs some functions these changes break some user actions, scripts and user work-flows. In fact all the version you listed CS4, CS5 and CS6 have comparability issues. In that respect Photoshop CC is not any better it has compatibility issues.
Newer versions of Photoshop have new functions and updated old function. Older versions can not handle everything save by newer versions of Photoshop. If you save PSD and PSB files with the maximum compatibility option checked. Older version should be able to open you layer document with layers that look like what was saved though some layer may be altered and may even be a different layer kind then was saved. If you need to support older versions of Photoshop always use the maximum compatibility option. -
Choppy/jagged movement when moving around on a zoomed-in image?
Brand new MacBook Pro - Non-Retina - OSX 10.8.2 / 2.6GHz Intel Core i7 / 8GB RAM / 750GB HD (currently 522GB free space) / CS6 Extended Version 13.0.1. x64
I just got a new MacBook Pro this past week and immediately discovered that whenever I would try to move around on a zoomed-in image (using two-finger scrolling on my trackpad, as I've done for years), it would be very choppy/jagged/sort of jumping pixels. I've changed everything in Photoshop--Preferences--Performance multiple times (including the graphics processor settings, memory usage, history & cache), as well as all of my scrolling and trackpad settings, and have also tried with and without automatic graphics switching. I have this issue in both CS6 (downloaded directly from adobe.com last night, extra updates done immediately), and CS5. I tried CS4 and there was no issue...but I didn't get a brand new computer to use an old version of Photoshop. Went into the Apple store today to see if they've seen this issue before, but the person I spoke to had not (and knew nothing about Photoshop...not that I expected him to). I have a few friends who have this same problem - some just deal with it (or don't use Photoshop enough for it to be a bother), some have gotten their computers replaced (but with no actual answers). Apple wasn't convinced that this was a hardware issue in my case, but did offer to replace the computer (however it will take a couple weeks, as it's a custom order). I've spent countless hours searching these Adobe forums (and the rest of the internet) for insight.
I did a screen recording showing what is happening as I move around on an image - http://youtu.be/yyRBUiDjavM
This happens on ALL images, regardless of file type and size (the image shown in this video is just a jpg with no extra layers - working on RAW files with multiple layers produces the same result, no worse). And once again, I have changed everything in the Performance Preferences in PS (including the graphics processor settings, memory usage, history & cache), as well as all of my scrolling and trackpad settings, and have also tried with and without automatic graphics switching in my energy saver preferences...all multiple times, all with closing/reopening PS, all with restarting my computer afterwards. Have I missed something, or do you guys think it is more than likely a hardware (RAM, graphics card, etc) problem?
Here is my (current) system info - again, I've changed the PS performance preferences multiple times -
Adobe Photoshop Version: 13.0.1 (13.0.1 20120808.r.519 2012/08/08:21:00:00) x64
Operating System: Mac OS 10.8.2
System architecture: Intel CPU Family:6, Model:58, Stepping:9 with MMX, SSE Integer, SSE FP, SSE2, SSE3, SSE4.1, SSE4.2, HyperThreading
Physical processor count: 4
Logical processor count: 8
Processor speed: 2600 MHz
Built-in memory: 8192 MB
Free memory: 4214 MB
Memory available to Photoshop: 6888 MB
Memory used by Photoshop: 65 %
Image tile size: 1028K
Image cache levels: 8
OpenGL Drawing: Enabled.
OpenGL Drawing Mode: Normal
OpenGL Allow Normal Mode: True.
OpenGL Allow Advanced Mode: True.
OpenGL Allow Old GPUs: Not Detected.
OpenGL Version: 2.1 NVIDIA-8.6.22
OpenCL Version:
Video Card Vendor: NVIDIA Corporation
Video Card Renderer: NVIDIA GeForce GT 650M OpenGL Engine
Display: 1
Main Display
Display Depth:= 32
Display Bounds:= top: 0, left: 0, bottom: 1050, right: 1680
Video Renderer ID: 16918087
Video Card Memory: 1001 MB
Video Rect Texture Size: 16384
Serial number: Tryout Version
Application folder: Macintosh HD:Applications:Adobe Photoshop CS6:
Photoshop scratch has async I/O enabled
Scratch volume(s):
Macintosh HD, 697.8G, 522.6G free
Required Plug-ins folder: Macintosh HD:Applications:Adobe Photoshop CS6:Adobe Photoshop CS6.app:Contents:Required:
Primary Plug-ins folder: Macintosh HD:Applications:Adobe Photoshop CS6:Plug-ins:
Additional Plug-ins folder: not set
Installed components:
adbeape.framework adbeape 3.3.8.19346 66.1025012
AdbeScriptUIFlex.framework AdbeScriptUIFlex 6.2.29.18602 66.490082
adobe_caps.framework adobe_caps 6.0.29.0 1.276181
AdobeACE.framework AdobeACE 2.19.18.20743 66.507768
AdobeAGM.framework AdobeAGM 4.26.20.20743 66.507768
AdobeAXE8SharedExpat.framework AdobeAXE8SharedExpat 3.7.101.18636 66.26830
AdobeAXEDOMCore.framework AdobeAXEDOMCore 3.7.101.18636 66.26830
AdobeBIB.framework AdobeBIB 1.2.02.20743 66.507768
AdobeBIBUtils.framework AdobeBIBUtils 1.1.01 66.507768
AdobeCoolType.framework AdobeCoolType 5.10.33.20743 66.507768
AdobeCrashReporter.framework AdobeCrashReporter 6.0.20120720
AdobeExtendScript.framework AdobeExtendScript 4.2.12.18602 66.490082
AdobeJP2K.framework AdobeJP2K 2.0.0.18562 66.236923
AdobeLinguistic.framework 17206
AdobeMPS.framework AdobeMPS 5.8.0.19463 66.495174
AdobeOwl.framework AdobeOwl 4.0.95 66.510504
AdobePDFL.framework AdobePDFL 10.0.1.18562 66.419471
AdobePDFSettings.framework AdobePDFSettings 1.4
AdobePIP.framework AdobePIP 6.0.0.1654
AdobeScCore.framework AdobeScCore 4.2.12.18602 66.490082
AdobeUpdater.framework AdobeUpdater 6.0.0.1452 "52.338651"
AdobeXMP.framework AdobeXMPCore 66.145661 66.145661
AdobeXMPFiles.framework AdobeXMPFiles 66.145661 66.145661
AdobeXMPScript.framework AdobeXMPScript 66.145661 66.145661
ahclient.framework ahclient 1.7.0.56
aif_core.framework AdobeAIF 3.0.00 62.490293
aif_ocl.framework AdobeAIF 3.0.00 62.490293
aif_ogl.framework AdobeAIF 3.0.00 62.490293
AlignmentLib.framework xcode 1.0.0.1
amtlib.framework amtlib 6.0.0.75
boost_date_time.framework boost_date_time 6.0.0.0
boost_signals.framework boost_signals 6.0.0.0
boost_system.framework boost_system 6.0.0.0
boost_threads.framework boost_threads 6.0.0.0
Cg.framework NVIDIA Cg
CIT.framework CIT 2.0.5.19287 145486
data_flow.framework AdobeAIF 3.0.00 62.490293
dvaaudiodevice.framework dvaaudiodevice 6.0.0.0
dvacore.framework dvacore 6.0.0.0
dvamarshal.framework dvamarshal 6.0.0.0
dvamediatypes.framework dvamediatypes 6.0.0.0
dvaplayer.framework dvaplayer 6.0.0.0
dvatransport.framework dvatransport 6.0.0.0
dvaunittesting.framework dvaunittesting 6.0.0.0
dynamiclink.framework dynamiclink 6.0.0.0
FileInfo.framework FileInfo 66.145433 66.145433
filter_graph.framework AdobeAIF 3.0.00 62.490293
hydra_filters.framework AdobeAIF 3.0.00 62.490293
ICUConverter.framework ICUConverter 3.61 "gtlib_3.0" "." "16615"
ICUData.framework ICUData 3.61 "gtlib_3.0" "." "16615"
image_compiler.framework AdobeAIF 3.0.00 62.490293
image_flow.framework AdobeAIF 3.0.00 62.490293
image_runtime.framework AdobeAIF 3.0.00 62.490293
LogSession.framework LogSession 2.1.2.1652
mediacoreif.framework mediacoreif 6.0.0.0
PlugPlug.framework PlugPlug 3.0.0.383
UpdaterNotifications.framework UpdaterNotifications 6.0.0.24 "6.0.0.24"
wrservices.framework
Required plug-ins:
3D Studio 13.0.1 20120808.r.519 2012/08/08:21:00:00 ©2006-2012 Adobe Systems Incorporated - from the file “U3D.plugin”
Accented Edges 13.0, Copyright © 1991-2012 Adobe Systems Incorporated - from the file “Filter Gallery.plugin”
Adaptive Wide Angle 13.0, Copyright © 2012 Adobe Systems Incorporated - from the file “Adaptive Wide Angle.plugin”
ADM 3.10x16, Copyright © 1987-2008 Adobe Systems Inc. All rights reserved. - from the file “AdobeADM.bundle”
Angled Strokes 13.0, Copyright © 1991-2012 Adobe Systems Incorporated - from the file “Filter Gallery.plugin”
Average 13.0.1 20120808.r.519 2012/08/08:21:00:00 ©1993-2012 Adobe Systems Incorporated - from the file “Average.plugin”
Bas Relief 13.0, Copyright © 1991-2012 Adobe Systems Incorporated - from the file “Filter Gallery.plugin”
BMP 13.0, Copyright © 2003-2012 Adobe Systems Incorporated - from the file “Standard Multiplugin.plugin”
Camera Raw 7.2 (46), Copyright © 2012 Adobe Systems Incorporated - from the file “Camera Raw.plugin”
Chalk & Charcoal 13.0, Copyright © 1991-2012 Adobe Systems Incorporated - from the file “Filter Gallery.plugin”
Charcoal 13.0, Copyright © 1991-2012 Adobe Systems Incorporated - from the file “Filter Gallery.plugin”
Chrome 13.0, Copyright © 1991-2012 Adobe Systems Incorporated - from the file “Filter Gallery.plugin”
Cineon 13.0.1 20120808.r.519 2012/08/08:21:00:00 ©2002-2012 Adobe Systems Incorporated - from the file “Cineon.plugin”
Clouds 13.0.1 20120808.r.519 2012/08/08:21:00:00 ©1993-2012 Adobe Systems Incorporated - from the file “Clouds.plugin”
Collada DAE 13.0.1 20120808.r.519 2012/08/08:21:00:00 ©2006-2012 Adobe Systems Incorporated - from the file “U3D.plugin”
Color Halftone 13.0, Copyright © 2003-2012 Adobe Systems Incorporated - from the file “Standard Multiplugin.plugin”
Colored Pencil 13.0, Copyright © 1991-2012 Adobe Systems Incorporated - from the file “Filter Gallery.plugin”
CompuServe GIF 13.0, Copyright © 2003-2012 Adobe Systems Incorporated - from the file “Standard Multiplugin.plugin”
Conté Crayon 13.0, Copyright © 1991-2012 Adobe Systems Incorporated - from the file “Filter Gallery.plugin”
Craquelure 13.0, Copyright © 1991-2012 Adobe Systems Incorporated - from the file “Filter Gallery.plugin”
Crop and Straighten Photos 13.0.1 20120808.r.519 2012/08/08:21:00:00 ©2003-2012 Adobe Systems Incorporated - from the file “CropPhotosAuto.plugin”
Crop and Straighten Photos Filter 13.0, Copyright © 2003-2012 Adobe Systems Incorporated - from the file “Standard Multiplugin.plugin”
Crosshatch 13.0, Copyright © 1991-2012 Adobe Systems Incorporated - from the file “Filter Gallery.plugin”
Crystallize 13.0, Copyright © 2003-2012 Adobe Systems Incorporated - from the file “Standard Multiplugin.plugin”
Cutout 13.0, Copyright © 1991-2012 Adobe Systems Incorporated - from the file “Filter Gallery.plugin”
Dark Strokes 13.0, Copyright © 1991-2012 Adobe Systems Incorporated - from the file “Filter Gallery.plugin”
De-Interlace 13.0, Copyright © 2003-2012 Adobe Systems Incorporated - from the file “Standard Multiplugin.plugin”
Dicom 13.0, Copyright © 2003-2012 Adobe Systems Incorporated - from the file “dicom.plugin”
Difference Clouds 13.0.1 20120808.r.519 2012/08/08:21:00:00 ©1993-2012 Adobe Systems Incorporated - from the file “Clouds.plugin”
Diffuse Glow 13.0, Copyright © 1991-2012 Adobe Systems Incorporated - from the file “Filter Gallery.plugin”
Displace 13.0, Copyright © 2003-2012 Adobe Systems Incorporated - from the file “Standard Multiplugin.plugin”
Dry Brush 13.0, Copyright © 1991-2012 Adobe Systems Incorporated - from the file “Filter Gallery.plugin”
Eazel Acquire 13.0.1 20120808.r.519 2012/08/08:21:00:00 ©1997-2012 Adobe Systems Incorporated - from the file “EazelAcquire.plugin”
Embed Watermark NO VERSION - from the file “DigiSign.plugin”
Enable Async I/O 13.0.1 20120808.r.519 2012/08/08:21:00:00 © 2004-2012 Adobe Systems Incorporated - from the file “Enable Async IO.plugin”
Entropy 13.0.1 20120808.r.519 2012/08/08:21:00:00 ©2006-2012 Adobe Systems Incorporated - from the file “statistics.plugin”
Extrude 13.0, Copyright © 2003-2012 Adobe Systems Incorporated - from the file “Standard Multiplugin.plugin”
FastCore Routines 13.0.1 20120808.r.519 2012/08/08:21:00:00 ©1990-2012 Adobe Systems Incorporated - from the file “FastCore.plugin”
Fibers 13.0, Copyright © 2003-2012 Adobe Systems Incorporated - from the file “Standard Multiplugin.plugin”
Film Grain 13.0, Copyright © 1991-2012 Adobe Systems Incorporated - from the file “Filter Gallery.plugin”
Filter Gallery 13.0, Copyright © 1991-2012 Adobe Systems Incorporated - from the file “Filter Gallery.plugin”
Flash 3D 13.0.1 20120808.r.519 2012/08/08:21:00:00 ©2006-2012 Adobe Systems Incorporated - from the file “U3D.plugin”
Fresco 13.0, Copyright © 1991-2012 Adobe Systems Incorporated - from the file “Filter Gallery.plugin”
Glass 13.0, Copyright © 1991-2012 Adobe Systems Incorporated - from the file “Filter Gallery.plugin”
Glowing Edges 13.0, Copyright © 1991-2012 Adobe Systems Incorporated - from the file “Filter Gallery.plugin”
Google Earth 4 KMZ 13.0.1 20120808.r.519 2012/08/08:21:00:00 ©2006-2012 Adobe Systems Incorporated - from the file “U3D.plugin”
Grain 13.0, Copyright © 1991-2012 Adobe Systems Incorporated - from the file “Filter Gallery.plugin”
Graphic Pen 13.0, Copyright © 1991-2012 Adobe Systems Incorporated - from the file “Filter Gallery.plugin”
Halftone Pattern 13.0, Copyright © 1991-2012 Adobe Systems Incorporated - from the file “Filter Gallery.plugin”
HDRMergeUI 13.0, Copyright © 2003-2012 Adobe Systems Incorporated - from the file “HDRMergeUI.plugin”
IFF Format 13.0, Copyright © 2003-2012 Adobe Systems Incorporated - from the file “Standard Multiplugin.plugin”
Ink Outlines 13.0, Copyright © 1991-2012 Adobe Systems Incorporated - from the file “Filter Gallery.plugin”
JPEG 2000 13.0.1 20120808.r.519 2012/08/08:21:00:00 ©2001-2012 Adobe Systems Incorporated - from the file “JPEG2000.plugin”
Kurtosis 13.0.1 20120808.r.519 2012/08/08:21:00:00 ©2006-2012 Adobe Systems Incorporated - from the file “statistics.plugin”
Lens Blur 13.0, Copyright © 2002-2012 Adobe Systems Incorporated - from the file “Lens Blur.plugin”
Lens Correction 13.0, Copyright © 2002-2012 Adobe Systems Incorporated - from the file “Lens Correct.plugin”
Lens Flare 13.0, Copyright © 2003-2012 Adobe Systems Incorporated - from the file “Standard Multiplugin.plugin”
Liquify 13.0, Copyright © 2001-2012 Adobe Systems Incorporated - from the file “Liquify.plugin”
Matlab Operation 13.0.1 20120808.r.519 2012/08/08:21:00:00 ©1993-2012 Adobe Systems Incorporated - from the file “ChannelPort.plugin”
Maximum 13.0.1 20120808.r.519 2012/08/08:21:00:00 ©2006-2012 Adobe Systems Incorporated - from the file “statistics.plugin”
Mean 13.0.1 20120808.r.519 2012/08/08:21:00:00 ©2006-2012 Adobe Systems Incorporated - from the file “statistics.plugin”
Measurement Core 13.0.1 20120808.r.519 2012/08/08:21:00:00 ©1993-2012 Adobe Systems Incorporated - from the file “MeasurementCore.plugin”
Median 13.0.1 20120808.r.519 2012/08/08:21:00:00 ©2006-2012 Adobe Systems Incorporated - from the file “statistics.plugin”
Mezzotint 13.0, Copyright © 2003-2012 Adobe Systems Incorporated - from the file “Standard Multiplugin.plugin”
Minimum 13.0.1 20120808.r.519 2012/08/08:21:00:00 ©2006-2012 Adobe Systems Incorporated - from the file “statistics.plugin”
MMXCore Routines 13.0.1 20120808.r.519 2012/08/08:21:00:00 ©1990-2012 Adobe Systems Incorporated - from the file “MMXCore.plugin”
Mosaic Tiles 13.0, Copyright © 1991-2012 Adobe Systems Incorporated - from the file “Filter Gallery.plugin”
Multiprocessor Support 13.0.1 20120808.r.519 2012/08/08:21:00:00 ©1990-2012 Adobe Systems Incorporated - from the file “MultiProcessor Support.plugin”
Neon Glow 13.0, Copyright © 1991-2012 Adobe Systems Incorporated - from the file “Filter Gallery.plugin”
Note Paper 13.0, Copyright © 1991-2012 Adobe Systems Incorporated - from the file “Filter Gallery.plugin”
NTSC Colors 13.0.1 20120808.r.519 2012/08/08:21:00:00 ©1993-2012 Adobe Systems Incorporated - from the file “NTSC Colors.plugin”
Ocean Ripple 13.0, Copyright © 1991-2012 Adobe Systems Incorporated - from the file “Filter Gallery.plugin”
Oil Paint 13.0, Copyright © 2011 Adobe Systems Incorporated - from the file “Oil Paint.plugin”
OpenEXR 13.0, Copyright © 2003-2012 Adobe Systems Incorporated - from the file “Standard Multiplugin.plugin”
Paint Daubs 13.0, Copyright © 1991-2012 Adobe Systems Incorporated - from the file “Filter Gallery.plugin”
Palette Knife 13.0, Copyright © 1991-2012 Adobe Systems Incorporated - from the file “Filter Gallery.plugin”
Patchwork 13.0, Copyright © 1991-2012 Adobe Systems Incorporated - from the file “Filter Gallery.plugin”
Paths to Illustrator 13.0, Copyright © 2003-2012 Adobe Systems Incorporated - from the file “Standard Multiplugin.plugin”
PCX 13.0.1 20120808.r.519 2012/08/08:21:00:00 ©1989-2012 Adobe Systems Incorporated - from the file “PCX.plugin”
Photocopy 13.0, Copyright © 1991-2012 Adobe Systems Incorporated - from the file “Filter Gallery.plugin”
Photoshop 3D Engine 13.0.1 20120808.r.519 2012/08/08:21:00:00 ©2006-2012 Adobe Systems Incorporated - from the file “Photoshop3DEngine.plugin”
Picture Package Filter 13.0.1 20120808.r.519 2012/08/08:21:00:00 ©1993-2012 Adobe Systems Incorporated - from the file “ChannelPort.plugin”
Pinch 13.0, Copyright © 2003-2012 Adobe Systems Incorporated - from the file “Standard Multiplugin.plugin”
Pixar 13.0.1 20120808.r.519 2012/08/08:21:00:00 ©1989-2012 Adobe Systems Incorporated - from the file “Pixar.plugin”
Plaster 13.0, Copyright © 1991-2012 Adobe Systems Incorporated - from the file “Filter Gallery.plugin”
Plastic Wrap 13.0, Copyright © 1991-2012 Adobe Systems Incorporated - from the file “Filter Gallery.plugin”
PNG 13.0, Copyright © 2003-2012 Adobe Systems Incorporated - from the file “Standard Multiplugin.plugin”
Pointillize 13.0, Copyright © 2003-2012 Adobe Systems Incorporated - from the file “Standard Multiplugin.plugin”
Polar Coordinates 13.0, Copyright © 2003-2012 Adobe Systems Incorporated - from the file “Standard Multiplugin.plugin”
Portable Bit Map 13.0.1 20120808.r.519 2012/08/08:21:00:00 ©1989-2012 Adobe Systems Incorporated - from the file “PBM.plugin”
Poster Edges 13.0, Copyright © 1991-2012 Adobe Systems Incorporated - from the file “Filter Gallery.plugin”
Radial Blur 13.0, Copyright © 2003-2012 Adobe Systems Incorporated - from the file “Standard Multiplugin.plugin”
Radiance 13.0.1 20120808.r.519 2012/08/08:21:00:00 ©2003-2012 Adobe Systems Incorporated - from the file “Radiance.plugin”
Range 13.0.1 20120808.r.519 2012/08/08:21:00:00 ©2006-2012 Adobe Systems Incorporated - from the file “statistics.plugin”
Read Watermark NO VERSION - from the file “DigiRead.plugin”
Reticulation 13.0, Copyright © 1991-2012 Adobe Systems Incorporated - from the file “Filter Gallery.plugin”
Ripple 13.0, Copyright © 2003-2012 Adobe Systems Incorporated - from the file “Standard Multiplugin.plugin”
Rough Pastels 13.0, Copyright © 1991-2012 Adobe Systems Incorporated - from the file “Filter Gallery.plugin”
Save for Web 13.0, Copyright © 1999-2012 Adobe Systems Incorporated - from the file “Save for Web.plugin”
ScriptingSupport 13.0, Copyright © 2012 Adobe Systems Incorporated - from the file “ScriptingSupport.plugin”
Shear 13.0, Copyright © 2003-2012 Adobe Systems Incorporated - from the file “Standard Multiplugin.plugin”
Skewness 13.0.1 20120808.r.519 2012/08/08:21:00:00 ©2006-2012 Adobe Systems Incorporated - from the file “statistics.plugin”
Smart Blur 13.0, Copyright © 2003-2012 Adobe Systems Incorporated - from the file “Standard Multiplugin.plugin”
Smudge Stick 13.0, Copyright © 1991-2012 Adobe Systems Incorporated - from the file “Filter Gallery.plugin”
Solarize 13.0.1 20120808.r.519 2012/08/08:21:00:00 ©1993-2012 Adobe Systems Incorporated - from the file “Solarize.plugin”
Spatter 13.0, Copyright © 1991-2012 Adobe Systems Incorporated - from the file “Filter Gallery.plugin”
Spherize 13.0, Copyright © 2003-2012 Adobe Systems Incorporated - from the file “Standard Multiplugin.plugin”
Sponge 13.0, Copyright © 1991-2012 Adobe Systems Incorporated - from the file “Filter Gallery.plugin”
Sprayed Strokes 13.0, Copyright © 1991-2012 Adobe Systems Incorporated - from the file “Filter Gallery.plugin”
Stained Glass 13.0, Copyright © 1991-2012 Adobe Systems Incorporated - from the file “Filter Gallery.plugin”
Stamp 13.0, Copyright © 1991-2012 Adobe Systems Incorporated - from the file “Filter Gallery.plugin”
Standard Deviation 13.0.1 20120808.r.519 2012/08/08:21:00:00 ©2006-2012 Adobe Systems Incorporated - from the file “statistics.plugin”
Sumi-e 13.0, Copyright © 1991-2012 Adobe Systems Incorporated - from the file “Filter Gallery.plugin”
Summation 13.0.1 20120808.r.519 2012/08/08:21:00:00 ©2006-2012 Adobe Systems Incorporated - from the file “statistics.plugin”
Targa 13.0, Copyright © 2003-2012 Adobe Systems Incorporated - from the file “Standard Multiplugin.plugin”
Texturizer 13.0, Copyright © 1991-2012 Adobe Systems Incorporated - from the file “Filter Gallery.plugin”
Tiles 13.0, Copyright © 2003-2012 Adobe Systems Incorporated - from the file “Standard Multiplugin.plugin”
Torn Edges 13.0, Copyright © 1991-2012 Adobe Systems Incorporated - from the file “Filter Gallery.plugin”
Twirl 13.0, Copyright © 2003-2012 Adobe Systems Incorporated - from the file “Standard Multiplugin.plugin”
U3D 13.0.1 20120808.r.519 2012/08/08:21:00:00 ©2006-2012 Adobe Systems Incorporated - from the file “U3D.plugin”
Underpainting 13.0, Copyright © 1991-2012 Adobe Systems Incorporated - from the file “Filter Gallery.plugin”
Vanishing Point 13.0, Copyright © 2003-2012 Adobe Systems Incorporated - from the file “VanishingPoint.plugin”
Variance 13.0.1 20120808.r.519 2012/08/08:21:00:00 ©2006-2012 Adobe Systems Incorporated - from the file “statistics.plugin”
Water Paper 13.0, Copyright © 1991-2012 Adobe Systems Incorporated - from the file “Filter Gallery.plugin”
Watercolor 13.0, Copyright © 1991-2012 Adobe Systems Incorporated - from the file “Filter Gallery.plugin”
Wave 13.0, Copyright © 2003-2012 Adobe Systems Incorporated - from the file “Standard Multiplugin.plugin”
Wavefront|OBJ 13.0.1 20120808.r.519 2012/08/08:21:00:00 ©2006-2012 Adobe Systems Incorporated - from the file “U3D.plugin”
Wind 13.0, Copyright © 2003-2012 Adobe Systems Incorporated - from the file “Standard Multiplugin.plugin”
Wireless Bitmap 13.0.1 20120808.r.519 2012/08/08:21:00:00 ©1989-2012 Adobe Systems Incorporated - from the file “WBMP.plugin”
ZigZag 13.0, Copyright © 2003-2012 Adobe Systems Incorporated - from the file “Standard Multiplugin.plugin”
Optional and third party plug-ins: NONE
Plug-ins that failed to load: NONE
Flash:
Mini Bridge
Kuler
Installed TWAIN devices: NONEThanks for your response Mylenium, however like I mentioned multiple times, I did change all of my trackpad/scrolling settings in system preferences. And if I wanted to use a normal mouse (or a tablet), I would've gotten an iMac instead of a MacBook Pro. I travel often and work all over the place, not always with access to a decently sized workspace that would be required for using a mouse or tablet.
-
Hi,
I need to zoom the image during the each button click.I have done 1 program ,but i coulnt able to change the parameter block's value each time.Take this program and just change the pic's path and run
it ll show the pic,smaller than its actual size,because i changed the parameter block's value.this cahnge i want to do for each button click,please try to solve my problem,
the code is
import javax.swing.JFrame;
import java.awt.Toolkit;
import java.awt.Dimension;
import java.awt.image.RenderedImage;
import java.awt.image.BufferedImage;
import java.awt.BasicStroke;
import java.awt.Color;
import javax.swing.Icon;
import javax.swing.ImageIcon;
import javax.swing.JButton;
import java.awt.event.MouseListener;
import java.awt.event.MouseEvent;
import javax.swing.JPanel;
import java.awt.image.renderable.ParameterBlock;
import java.io.IOException;
import javax.media.jai.Interpolation;
import javax.media.jai.JAI;
import javax.media.jai.*;
import java.awt.geom.*;
import java.awt.geom.AffineTransform;
import java.awt.Graphics;
import java.awt.Graphics2D;
import javax.media.jai.RenderedOp;
import com.sun.media.jai.codec.FileSeekableStream;
import javax.media.jai.widget.ScrollingImagePanel;
* This program decodes an image file of any JAI supported
* formats, such as GIF, JPEG, TIFF, BMP, PNM, PNG, into a
* RenderedImage, scales the image by 2X with bilinear
* interpolation, and then displays the result of the scale
* operation.
public class JAISampleProgram extends DisplayJAI implements MouseListener
JPanel jp=null;
ParameterBlock params=null;
Interpolation interp=null;
RenderedImage image1;
RenderedImage image2;
RenderedImage rop;
ScrollingImagePanel panel=null;
JFrame jf=null;
BufferedImage buff;
Graphics2D graph;
int width;
int height;
JAISampleProgram()
JButton zoomin= new JButton(ico1);
JButton zoomout = new JButton(ico2);
jp = new JPanel();
FileSeekableStream stream = null;
try
stream = new FileSeekableStream("D:/muthu/My Pictures/anniyan1.jpg");
catch (IOException e)
e.printStackTrace();
System.exit(0);
/* Create an operator to decode the image file. */
image1 = JAI.create("stream", stream,null);
* Create a standard bilinear interpolation object to be
* used with the "scale" operator.
interp = Interpolation.getInstance(
Interpolation.INTERP_BICUBIC_2);
* Stores the required input source and parameters in a
* ParameterBlock to be sent to the operation registry,
* and eventually to the "scale" operator.
params = new ParameterBlock();
params.addSource(image1);
params.add(0.1f); // x scale factor
params.add(0.1f); // y scale factor
params.add(0.0F); // x translate
params.add(0.0F); // y translate
params.add(interp); // interpolation method
/* Create an operator to scale image1. */
image2 = JAI.create("scale", params,null);
/* Get the width and height of image2. */
width = image1.getWidth();
height = image1.getHeight();
/* Attach image2 to a scrolling panel to be displayed. */
panel= new ScrollingImagePanel(image2, width, height);
panel.setSize(400,300);
setPreferredSize(new Dimension(image1.getWidth(),image1.getHeight()));
buff = new BufferedImage(image1.getWidth(),image1.getHeight(), BufferedImage.TYPE_INT_RGB);
width=image1.getWidth();
height=image1.getHeight();
graph = buff.createGraphics();
graph.setStroke(new BasicStroke(2.0f));
panel.addMouseListener(this);
jp.add(zoomin);
jp.add(zoomout);
jf = new JFrame("sample");
jf.setContentPane(panel);
jf.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
repaint();
public void mouseClicked(MouseEvent e)
ParameterBlock pb = new ParameterBlock();
interp = Interpolation.getInstance(Interpolation.INTERP_BICUBIC_2);
pb = new ParameterBlock();
pb.addSource(image2);
pb.add(0.5f); // x scale factor
pb.add(0.5f); // y scale factor
pb.add(0.0F); // x translate
pb.add(0.0F); // y translate
pb.add(interp); // interpolation method
rop = JAI.create("scale", params,null);
panel= new ScrollingImagePanel(rop, width, height);
panel.setSize(400,300);
setPreferredSize(new Dimension(image1.getWidth(),image1.getHeight()));
buff = new BufferedImage(image1.getWidth(),image1.getHeight(), BufferedImage.TYPE_INT_RGB);
width=image1.getWidth();
height=image1.getHeight();
graph = buff.createGraphics();
graph.setStroke(new BasicStroke(2.0f));
repaint();
public void mouseEntered(MouseEvent e)
public void mouseExited(MouseEvent e){}
public void mousePressed(MouseEvent e){}
public void mouseReleased(MouseEvent e){}
public synchronized void paintComponent(Graphics g)
panel.paintComponents(g);
Graphics2D g2d = (Graphics2D)g;
g = jp.getGraphics();
g2d.setColor(Color.BLUE);
g2d.drawLine(50,50,100,100);
graph.setColor(Color.yellow);
g.drawLine(60,60,120,120);
g2d.drawRenderedImage(rop,AffineTransform.getTranslateInstance(100.00,100.00));
/* params = params.set(0.1f,0);
params = params.set(0.1f,1); */
public static void main(String[] args)
/* Validate input.
* Create an input stream from the specified file name
* to be used with the file decoding operator.
JAISampleProgram jai = new JAISampleProgram();
/* Create a frame to contain the panel. */
jai.jf.pack();
Toolkit theKit=Toolkit.getDefaultToolkit();
Dimension dim=theKit.getScreenSize();
int scrWidth=dim.width;
int scrHeight=dim.height;
jai.jf.setSize(scrWidth,scrHeight);
jai.jf.show();
}scale your Graphics2D object
http://java.sun.com/j2se/1.5.0/docs/api/java/awt/Graphics2D.html#scale(double,%20double)
Also check the documentation of
http://java.sun.com/j2se/1.5.0/docs/api/javax/swing/JComponent.html#paint(java.awt.Graphics)
and see if your code would be better in paint(java.awt.Graphics) instead of paintComponent(Graphics g) -
How do I save image and text as a single image in InDesign CS5.0?
How do I save an image and text as one image in InDesign CS5.0? NOT 5.5.
I need to save the image as a 72-dpi, jpg file for ePub purposes. I designed a book and am handing it off to someone for ePub.
This is what I've tried:
1) Copied from InDesign, pasted into a PhotoShop doc as a Smart Object. Saved it as 72 dpi jpg, then imported back into ID.
2) Took a screenshot of ID page, placed it in PS, saved as 72 dpi, imported into ID
3) Saved page as a PDF from InDesign, then saved PDF as 72 dpi jpg, then imported into ID.
4) Save page as a PDF from InDesign, placed into Photoshop and saved
as 72 dpi, then imported into ID.
5) Saved as an EPS from InDesign, placed in PS, then imported back to ID.
In all cases, the type looks terrible. It doesn't seem to matter whether I copy or place into Photoshop, though placing is slightly better.
HELP!!!In all cases, the type looks terrible. It doesn't seem to matter whether I copy or place into Photoshop, though placing is slightly better.
Naturally what you did will result in rasterized text. Did you preview with high quality settings?
Are you sure the people who will handle that downstream need pixel images and do you have the exact pixel dimensions needed?
Why did you place the image back in Indesign, by the way?
Maybe you are looking for
-
Can we add a new attachment to an existing SC from any other custom page in SoCo PO View
Hi Experts, Need your expert advice on the below requirement. We have created a custom view in SoCo PO page. There we have a New custom view called Notes&attachement.which contains same value from Notes & attachment of Shopping Cart. We are updating
-
Connection Pooling in heavy traffic web-applications
In a 24x7 web-app used by 3000-10000 concurrent users, what is the realistic number of maxmimum connections one should have defined in the application server's connection pool? The app has no caching mechanism therefore every page is a database hit.
-
Hi, I am a sony device fan using multiple sony devices specially smart phone! Since 5 months I m experience some problem with my Xperia Z2 mobile handset it has suddenly stop working , sometime during the call its stopped. Earlier I thought there may
-
CS6 - Is it possible to rotate multiple objects independent of one another?
CS6 - Is it possible to rotate multiple objects independent of one another? In other words selecting say 9 object in a grid then rotating the all 30 degrees on their own axis.
-
Flash CS6 site and business catalyst
I'm making a stite with flash cs6. I need to know where to host my site. I have pages with the usual "contact us"forms that will need a php forms and later I hope to expand to include a MMO game with social networking and all the other fun online gam