• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
  • Campbell Ritchie
  • Bear Bibeault
  • Devaka Cooray
  • Liutauras Vilda
  • Jeanne Boyarsky
  • Knute Snortum
  • Junilu Lacar
  • paul wheaton
Saloon Keepers:
  • Ganesh Patekar
  • Frits Walraven
  • Tim Moores
  • Ron McLeod
  • Carey Brown
  • Stephan van Hulst
  • salvin francis
  • Tim Holloway

APP: Concatenate images  RSS feed

Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi guys,

0 - Introduction:

Sorry about the grammar. I am not a native english speaker ( i'm brazillian )
I made a program that print the screen, open it in a frame and allows me to select an area of the image.
I added a (Save) button that when it is pressed the program write the selected area of image in a new file and save it.

1 - What i want it to do:

I want to use a list of rectangles to store all the selected images and when i pressed the (OK) button the program will concatenate it all in an single horizontal line (at the same file).
But i want more than this:
i want to: Create a new button that when it is pressed it starts to save the nexts rectangles (images) in another list and when i pressed [ (OK) button or this button again ] the program will concatenate this file under the first horizontal line (all at the same file).

2 - How to to this :

I think i'll have to compare the heigth of all images of the horizontal line above. For example the first image of the horizontal line below: drawImage(img, 0, biggest_height, null);

3 - What i did:

I tried to declare the list on tradicional way but it didnt work because it has limited length. then i tried to use this code:

ArrayList<Rectangle> al = new ArrayList<Rectangle>();

al.add(new Rectangle(x, y, w, h));

but it didn't work again.

4 - Can you help me to do this app ?

Thanks for your time.
And try to help me!!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!