This Example is going to draw a clip with SOLID line. In this picture only solid line show the clipping area. To draw a solid line, we have used SOLID keyword as given below:
| setStrokeStyle(Graphics.SOLID) |
and to draw the dotted line we are using DOTTED keyword, as given below:
| setStrokeStyle(Graphics.DOTTED) |
Methods, that are used in our example code..

Source Code of ClipExample.java
import javax.microedition.midlet.*;
|
If you are facing any programming issue, such as compilation errors or not able to find the code you are looking for.
Ask your questions, our development team will try to give answers to your questions.
Ask Questions? Discuss: Draw Clip Area Using Canvas
Post your Comment