Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > Java > JAI and Translating image

Thread Tools

JAI and Translating image

Grzegorz Wrazen
Posts: n/a

I have some problem connected with translating
BufferedImage by JAI lib. Below is my code:

ParameterBlock pb = new ParameterBlock();
pb.addSource(image); <--my BufferedImage
pb.add(new InterpolationNearest()); // The interpolation

// Create the translate operation
RenderedOp op = JAI.create("translate", pb, null);
image = op.getAsBufferedImage();

// Below I would like to change images.
imagePanel = new ImagePanel(image);

ImagePanel inherited from JPanel.
It do nothing, the image is the same like earlier.
What is wrong ?

Regards gWW

Reply With Quote

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
JAI: loading image file and check for success Andre Raue Java 0 10-18-2004 07:23 PM
"Drop shadow" effect and text on image using JAI Olivier Java 2 07-08-2004 06:34 PM
jai - changing image brightness and contrast Java 0 04-17-2004 10:38 PM
convert a tiff image to another format (using JAI ?) cyril Java 1 09-08-2003 01:29 PM
JAI, Image I/O, TIFF Images, and ImageReadParam Chuck Taylor Java 1 09-04-2003 12:21 AM