Selecting a part of an Image

Hi All,

I am developing an application,which customizes the face and back of playing cards.

I am struck here - theres an image and a transparent window on it and you can move this window all over the image. The clipped part of the image is displayed as an another image.i know that he is clipping the image.But how do i implement this.

Can anyone please help me how to start with it atleast.!!!!

Thanks in advance

Please take a look at the below link

http://www.yourplayingcards.com/builder/

(look in image tab)

[561 byte] By [Me_Scorpioa] at [2007-11-26 16:03:28]
# 1

Lookup getSubImage in BufferedImage API:

http://java.sun.com/j2se/1.5.0/docs/api/java/awt/image/BufferedImage.html

And also public abstract boolean drawImage(Image img,

int x,

int y,

int width,

int height,

ImageObserver observer)

In Graphics API:

http://java.sun.com/j2se/1.5.0/docs/api/java/awt/Graphics.html

And finally how to do custom painting:

http://www.iam.ubc.ca/guides/javatut99/uiswing/painting/overview.html

Rodney_McKaya at 2007-7-8 22:25:19 > top of Java-index,Security,Cryptography...