Wednesday, August 29, 2012

How to set stroke width for Canvas Context2d?

Hi,

I'd like to change the stroke width but am not clear how to do this:

    Context2d context = ...;
    context.setStrokeStyle(FillStrokeStyle ?);
    context.strokeRect(…);

I'm not sure how to create a FillStrokeStyle object (or specifically how to create one where I can control its width). Anyone know?

Thanks



http://google-web-toolkit.googlecode.com/svn/javadoc/2.2/com/google/gwt/canvas/dom/client/FillStrokeStyle.html

--
You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group.
To view this discussion on the web visit https://groups.google.com/d/msg/google-web-toolkit/-/ldo3jY79GdMJ.
To post to this group, send email to google-web-toolkit@googlegroups.com.
To unsubscribe from this group, send email to google-web-toolkit+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.

No comments:

Post a Comment