HuyPV
Saturday, January 29, 2011
Question:
Can any one tell me how exactly does g.setClip(x,y,w,h) work in j2me?
Does it paint the entire image, but only the clipped image is visible(and the rest of the image isnt visible)?
OR
It clips the particular region from the image (which is already created) and then renders only that region on the screen, without drawing the ENTIRE image
Answer:
Generally,you use g.setClip(x,y,w,h) with g.drawImage().It does draw the entire image,but only the region that you set in g.setClip(x,y,w,h) is visible.
Title:
J2ME - How does setClip work
Description:
Question: Can any one tell me how exactly does g.setClip(x,y,w,h) work in j2me? Does it paint the entire image, but only the clipped image...
...
Rating:
4