Colorspace (색 공간)

Pixmap 의 색 공간을 나타냅니다.

클래스 API

class Colorspace
__init__(self, n)

생성자

매개변수:

n (int) – 색 공간을 식별하는 숫자. 가능한 값은 CS_RGB, CS_GRAY, CS_CMYK 입니다.

name

색 공간을 식별하는 이름. 예: pymupdf.csCMYK.name = ‘DeviceCMYK’.

유형:

str

n

한 픽셀의 색상을 정의하는 데 필요한 바이트 수. 예: pymupdf.csCMYK.n == 4.

유형:

int

사전 정의된 색 공간

입력을 간소화하기 위해 세 가지 사용 가능한 경우에 대한 사전 정의된 색 공간 객체가 존재합니다.

  • csRGB = pymupdf.Colorspace(pymupdf.CS_RGB)

  • csGRAY = pymupdf.Colorspace(pymupdf.CS_GRAY)

  • csCMYK = pymupdf.Colorspace(pymupdf.CS_CMYK)

This software is provided AS-IS with no warranty, either express or implied. This software is distributed under license and may not be copied, modified or distributed except as expressly authorized under the terms of that license. Refer to licensing information at artifex.com or contact Artifex Software Inc., 39 Mesa Street, Suite 108A, San Francisco CA 94129, United States for further information.