RasterSurface
개요
RasterSurface은 Aspose.Page FOSS에서 Python용 클래스입니다.
메모리 내 RGBA 픽셀 서피스.
이 클래스는 Python 프로그램에서 RasterSurface 객체를 다루기 위한 3개의 메서드를 제공합니다. 사용 가능한 메서드에는 create, get_pixel, set_pixel가 포함됩니다. 모든 Python 애플리케이션은 Aspose.Page FOSS for Python 패키지를 설치한 후 공개 멤버에 접근할 수 있습니다. 속성: clip_mask, height, pixels, width.
속성
| 이름 | 유형 | 액세스 | 설명 |
|---|---|---|---|
width | int | 읽기/쓰기 | 너비를 가져오거나 설정합니다. |
height | int | 읽기/쓰기 | 높이를 가져오거나 설정합니다. |
pixels | bytearray | 읽기/쓰기 | 픽셀을 가져오거나 설정합니다. |
clip_mask | `bytearray | None` | 읽기/쓰기 |
메서드
| 시그니처 | 설명 |
|---|---|
create(width: int, height: int, background: tuple[int, int, int, int]) → "RasterSurface" | |
set_pixel(x: int, y: int, color: tuple[int, int, int, int]) | 픽셀 값을 설정합니다. |
get_pixel(x: int, y: int) → tuple[int, int, int, int] |