12.07.2015 Views

Drawing and Java2D

Drawing and Java2D

Drawing and Java2D

SHOW MORE
SHOW LESS
  • No tags were found...

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

Line stroke Stroking is how lines are rendered● Line thickness:g.setStroke( new BasicStroke(2f) );● Cap style <strong>and</strong> join style:new BasicStroke( 2f, BasicStroke.CAP_ROUND,BasicStroke.JOIN_MITER, 10f )● Dash pattern <strong>and</strong> phase (offset):float dash[] = { 10f, 5f };new BasicStroke( 2f, ...ROUND, ...MITER, 10f,dash, 0f )CMPT166: drawing <strong>and</strong> <strong>Java2D</strong> 15 Feb 201116

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!