Jan 17, 2009

Clipping

When the first time I saw it in javax.microedition.lcdui.Graphics, I really had no ideas what is it. Well, I guess maybe I couldn't understand it is because I'm not a native English speaker (No! It's because you're stupid!) and I don't know what does `clip' mean here.

Then I studied the spec and traced few samples, tried to understand it. Now, to be simple, it's just a region that limits the rendering on the Graphics.

MIDP 2.0 has following descriptions in Graphics:
The clip is the set of pixels in the destination of the Graphics object that may be modified by graphics rendering operations.

There is a single clip per Graphics object. The only pixels modified by graphics operations are those that lie within the clip. Pixels outside the clip are not modified by any graphics operations.
Hope this helps.

No comments:

Post a Comment