どのようにrect(私はlineTo()を使用することができますように)のパスを描くことができますか?<canvas> rect path - how?
0
A
答えて
1
0
rect()関数がstrokeRect()関数とfillRect()関数と異なる点に注意してください。これらの2つの関数は、beginPath()またはstroke()/ fill()呼び出しを必要とせずにキャンバスをすぐに描画します()。たとえば、これはキャンバスに矩形を描きます:
context.fillStyle = 'red'; context.fillRect(5,5,100,100);
関連する問題
- 1. 構造体にIntPtrを取得するには?私は署名</p> <pre><code>public int Copy(Texture texture, Rect? srcrect, Rect? dstrect) </code></pre> <p><code>Rect</code>と方法を持っている
- 2. How do to do "make <subdir><target>"?
- 3. CriteriaBuilder.and&CriteriaBuilder.or、how-to?
- 4. HOW TO
- 5. Rect - Pygameのテキスト
- 6. WPF Rect Transform
- 7. SVG rect border width
- 8. svgの片側に丸みのついたコーナー<rect>
- 9. 棒グラフの<rect>の両端にラベルを追加する
- 10. リクエストのライフサイクル中に、web.config <location path = '/ Path'>タグが実行されますか?
- 11. How to <href..>私のsvg-logo with Raphael?
- 12. Pygame rect = rect.inflate()vs rect.inflate_ip()
- 13. 交差するRect!
- 14. Entity Framework How
- 15. SOAPMessage - SOAPConnection - gzip - how
- 16. Zend_Form_Decorator_File how to
- 17. modernizr - how to
- 18. DOJO:dojox.grid.TreeGrid +チェックボックスHow to
- 19. mod_rewrite `リダイレクト` how?
- 20. import javax.mail.session how?
- 21. MTLocation how-to
- 22. FreeBSD pkg_create how to
- 23. Pygame RectセンターはRectの左を上書きできません
- 24. WPF VB.NET RectangleGeometry Rect構造体マルチバインド
- 25. how to textview and android
- 26. How to encode Japanese characters
- 27. public virtual enum(Dictionary)HOW?
- 28. railscast 197 how to:function add_fields
- 29. how update update tableview json
- 30. リセヤー取引how-to
"rectのパス"とはどういう意味ですか?その概要? –
@Matti Virkkunenキャンバスに描画できるパスですが、stroke()またはfill()するまで表示されません。 – GZaidman