CGContext.SetStrokeColor 메서드
정의
중요
일부 정보는 릴리스되기 전에 상당 부분 수정될 수 있는 시험판 제품과 관련이 있습니다. Microsoft는 여기에 제공된 정보에 대해 어떠한 명시적이거나 묵시적인 보증도 하지 않습니다.
오버로드
SetStrokeColor(CGColor) |
스트로크 색을 설정합니다. |
SetStrokeColor(nfloat[]) |
스트로크 색을 설정합니다. 색 영역을 미리 설정하지 않으면 이 API에 정의되지 않은 동작이 있습니다. |
SetStrokeColor(nfloat, nfloat) |
스트로크 색을 회색조 값으로 설정합니다. |
SetStrokeColor(nfloat, nfloat, nfloat, nfloat) |
스트로크 색을 RGBA 색으로 설정합니다. |
SetStrokeColor(nfloat, nfloat, nfloat, nfloat, nfloat) |
스트로크 색을 CMYKA 색으로 설정합니다. |
SetStrokeColor(CGColor)
SetStrokeColor(nfloat[])
스트로크 색을 설정합니다. 색 영역을 미리 설정하지 않으면 이 API에 정의되지 않은 동작이 있습니다.
public void SetStrokeColor (nfloat[] components);
member this.SetStrokeColor : nfloat[] -> unit
매개 변수
- components
- nfloat[]
현재 선택한 색 영역과 관련된 구성 요소의 배열입니다.
설명
스트로크 색을 구성 요소 배열에 지정된 값으로 설정합니다. 이 배열의 요소 수는 현재 colorspace의 구성 요소 수와 알파 값에 대한 추가 요소 수와 같아야 합니다. 이 API가 작동하려면 이전에 SetStrokeColorSpace()를 사용하여 컨텍스트에서 colorspace를 설정해야 합니다. 그렇지 않으면 이 메서드를 호출한 결과가 지정되지 않습니다.
적용 대상
SetStrokeColor(nfloat, nfloat)
SetStrokeColor(nfloat, nfloat, nfloat, nfloat)
스트로크 색을 RGBA 색으로 설정합니다.
public void SetStrokeColor (nfloat red, nfloat green, nfloat blue, nfloat alpha);
member this.SetStrokeColor : nfloat * nfloat * nfloat * nfloat -> unit
매개 변수
- red
- nfloat
0.0에서 1.0 범위의 빨간색 구성 요소입니다.
- green
- nfloat
0.0에서 1.0 범위의 녹색 구성 요소입니다.
- blue
- nfloat
0.0에서 1.0 범위의 파란색 구성 요소입니다.
- alpha
- nfloat
0.0에서 1.0 범위의 불투명도입니다.
적용 대상
SetStrokeColor(nfloat, nfloat, nfloat, nfloat, nfloat)
스트로크 색을 CMYKA 색으로 설정합니다.
public void SetStrokeColor (nfloat cyan, nfloat magenta, nfloat yellow, nfloat black, nfloat alpha);
member this.SetStrokeColor : nfloat * nfloat * nfloat * nfloat * nfloat -> unit
매개 변수
- cyan
- nfloat
0.0에서 1.0 범위의 시안 구성 요소입니다.
- magenta
- nfloat
0.0에서 1.0 범위의 magenta 구성 요소입니다.
- yellow
- nfloat
0.0에서 1.0 범위의 노란색 구성 요소입니다.
- black
- nfloat
0.0에서 1.0 범위의 검은색 구성 요소입니다.
- alpha
- nfloat
0.0에서 1.0 범위의 불투명도입니다.