Help | Site Map
Connecting Tech Pros Worldwide
 
 
LinkBack Thread Tools
  #1  
Old June 27th, 2008, 05:16 PM
_kOws
Guest
 
Posts: n/a
Default Divide an image in 4 blocks

Hi,

I'm writing a program that loads an image and then apply JPEG
algorithm on it.
I need to apply such algorithm only to a quarter of the image, possibly
selecting which quarter.

I don't really know how to divide in quarter an image in Java: I think
that if I can divide the image in 4 images then I can use each image
as a quarter, and apply the algorithm as I'm doing now on the original
image.

Can someone help me?

Thank you very much, and sorry for my poor english!
Regards,

Gabriele
  #2  
Old June 27th, 2008, 05:16 PM
Frank Stallone
Guest
 
Posts: n/a
Default Re: Divide an image in 4 blocks

On Tue, 08 Apr 2008 16:19:07 +0200, _kOws wrote:
Quote:
Hi,
>
I'm writing a program that loads an image and then apply JPEG algorithm
on it.
I need to apply such algorithm only to a quarter of the image, possibly
selecting which quarter.
>
I don't really know how to divide in quarter an image in Java: I think
that if I can divide the image in 4 images then I can use each image as
a quarter, and apply the algorithm as I'm doing now on the original
image.
>
Can someone help me?
>
Thank you very much, and sorry for my poor english! Regards,
>
Gabriele
I've never done it but I can't imagine it's impossible since you can do
it in PHP.

A quick search turned up this:
http://www.java-tips.org/java-se-tip...how-to-crop-a-
subimage-from-an-image-9.html

You should be able to pull the necessary bits out from it for your own
purpose.
 

Bookmarks

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 Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

What is Bytes?

We are a network of experts and professionals in IT and software development that help one another with answers to tough questions and share insights. Get the best answers to your questions from over network members.
Post your question now . . .
It's fast and it's free

Popular Articles