Priyan
asked on
CreateImage!!!
Hello all,
How does CreateImage work?Suppose i have got a JFrame visible at the moment.Is it possible to create the image of that visible Jframe so that later on i can draw this.
With regards
Priyan.T
ICQ:54490947
mail:priyan.thirithiyil@li sec.com
How does CreateImage work?Suppose i have got a JFrame visible at the moment.Is it possible to create the image of that visible Jframe so that later on i can draw this.
With regards
Priyan.T
ICQ:54490947
mail:priyan.thirithiyil@li
yes, it is possible :)
:)
ASKER
hello all,
i think i should make my question a little bit more elaborate.What does createImage do,is it just creating a memory area which can be used for double buffering or will it actually returns an image of that component
if i have got a class extending from JFrame and if i write "Image img =this.createImage(this.get Bounds().w idth,this. getBounds( ).height); " does it actually create the image of that component,so that later on if i use g.drawImage(img,.....)it will be visible.Please excuse me if you find this question a little bit odd!
With regards
Priyan :)
i think i should make my question a little bit more elaborate.What does createImage do,is it just creating a memory area which can be used for double buffering or will it actually returns an image of that component
if i have got a class extending from JFrame and if i write "Image img =this.createImage(this.get
With regards
Priyan :)
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Frame Content to Image Object
http://www.inquiry.com/techtips/java_pro/answer.asp?pro=java_pro&docID=2462
http://www.inquiry.com/techtips/java_pro/answer.asp?pro=java_pro&docID=2462
ASKER
Hello,
Thanx heyhey for your help.
With regards
Priyan
Thanx heyhey for your help.
With regards
Priyan
ASKER
sorry for the points,it should have been 10.i didn't notice it.
rgds
Priyan.T
rgds
Priyan.T
it's ok
I received 10 x 4 (grade A) points.
the question now worths 1 point (10 / 10) and everybody that wants to see the answer will have to pay 1 point :)
I received 10 x 4 (grade A) points.
the question now worths 1 point (10 / 10) and everybody that wants to see the answer will have to pay 1 point :)