Thread Rating:
  • 345 Vote(s) - 2.93 Average
  • 1
  • 2
  • 3
  • 4
  • 5
【点線について】
08-12-2011, 08:22 AM, (This post was last modified: 08-12-2011, 08:25 AM by hokada.)
#4
RE: 【点線について】
斜めに引きたい場合のサンプルコードです

Code:
{define-class LineFrame {inherits Frame}
  {constructor {default ...}
  {construct-super ...}
}
{method public {draw ren:Renderer2d}:void
  def path = {Path
  {Distance2d 0mm, 0mm},
  PathOperation.line-to,
  {Distance2d 20mm, 10mm}
}
{with-render-properties
  fill-pattern = {FillPattern.get-black},
  stroke-thickness = 0.25mm,
  line-style = LineStyle.dash
  on ren do
  {ren.render-path path}
  }
}
}
{LineFrame
  width = 4cm,
  height = 4cm
}



Messages In This Thread
【点線について】 - by 川上 真太郎 - 08-11-2011, 06:54 PM
RE: 【点線について】 - by fukuta - 08-11-2011, 09:05 PM
RE: 【点線について】 - by fukuta - 08-11-2011, 09:11 PM
RE: 【点線について】 - by 森口 慶紀 - 08-12-2011, 08:22 AM
Forum Jump:


Users browsing this thread:
1 Guest(s)

MyBB SQL Error

MyBB has experienced an internal SQL error and cannot continue.

SQL Error:
1017 - Can't find file: 'mybb_threadviews' (errno: 2)
Query:
INSERT INTO mybb_threadviews (tid) VALUES('202')