473,322 Members | 1,562 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,322 software developers and data experts.

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
Jun 27 '08 #1
1 5033
On Tue, 08 Apr 2008 16:19:07 +0200, _kOws wrote:
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.
Jun 27 '08 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

5
by: Roger Shrubber | last post by:
I have a page with images that the user can drag from one frame to another. I need them to see a "ghost image" of the image they are dragging, while the original stays put. I use the onmousemove...
5
by: Chris Beall | last post by:
I'm displaying an image that is also a link against a black background. In Netscape 7.1, the current background color is displayed as a horizontal bar below the image. This allows :hover effects...
9
by: Veerle | last post by:
Hi, I would like to divide the whole of my html page in 4 equal rectangles using only div tags in my html. The result should look a bit like this site:...
5
by: John | last post by:
I get a 'divide by zero' exception when I scroll in a subdirectory of 'My Pictures'. This subdirectory is full of .ico, .bmp, .png files that I use for button images in my Windows Forms projects. ...
6
by: nichughes | last post by:
Hello all, A question relating to http://www.entrust-systems.net/ Just for a change I have run into a problem that seems to be OS specific rather than browser specific - the box image that is...
2
by: marss | last post by:
I have a long page that contains few separate information blocks. When I print the page by means of window.print(), the content is automatically divided by pages. I look through and find I can...
4
by: Vicente García | last post by:
Hi, I have a problem, I am working with Visual Basic and I need to save a image in GIF format but Visual Studio always save the file in GIF89 format and I must save the image in GIF87 format....
3
by: =?Utf-8?B?UnVieSBOYWRsZXI=?= | last post by:
Hi EveryOne, Does some one knows a way or tool that knows how to divide image into regions with c# so if the image is like a table style i will now the positions of the columns? i can read the...
1
by: _kOws | last post by:
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...
1
by: Arnab das | last post by:
I am working on C# image processing. I have to divide an image into 1 cm squares and then I have to calculate the no of pixel in each of the square.How can I do this? Thanks in advance
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
1
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.