Free Trial

Safari Books Online is a digital library providing on-demand subscription access to thousands of learning resources.

  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint
Share this Page URL
Help

Chapter 10. Custom Drawing > Using Different Stroke Styles and Line Widths

Using Different Stroke Styles and Line Widths

As shown in the preceding examples, you use a digital pen to draw your shapes. What I have not mentioned is that you can configure this digital pen by changing the value of the strokeStyle and lineWidth attributes of the LzDrawView object.

For example, the code in Listing 10.6 shows how you can draw ovals by using nonstandard pen.


  

You are currently reading a PREVIEW of this book.

                                                                                                                    

Get instant access to over $1 million worth of books and videos.

  

Start a Free Trial


  
  • Safari Books Online
  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint