2012-02-28 2 views

답변

2

그래픽 컨텍스트에서 점선의 패턴을 설정합니다.

void CGContextSetLineDash (
    CGContextRef c, 
    CGFloat phase, 
    const CGFloat lengths[], 
    size_t count 
); 

매개 변수 ...

길이

없는 대시 패턴

An array of values that specify the lengths of the painted segments and unpainted segments, respectively, of the dash pattern—orNULL.

For example, passing an array with the values [2,3] sets a dash pattern that alternates between a 2-user-space-unit-long painted segment and a 3-user-space-unit-long unpainted segment. Passing the values [1,3,4,2] sets the pattern to a 1-unit painted segment, a 3-unit unpainted segment, a 4-unit painted segment, and a 2-unit unpainted segment.

관련 문제