ImageData

ImageData

개요

ImageData은 Aspose.Psd FOSS에서 Python용 클래스입니다.

PSD 이미지 데이터 섹션을 압축 헤더와 원시 페이로드 바이트로 저장합니다.

이 클래스는 Python 프로그램에서 ImageData 객체를 위한 4개의 메서드를 선언합니다. 사용 가능한 메서드에는 __init__, load, save, to_public_info이(가) 포함됩니다. 공개 멤버는 Aspose.Psd FOSS for Python 패키지를 설치한 후 모든 Python 애플리케이션에서 접근할 수 있습니다. 속성: compression, raw_data, structure.

속성

이름유형액세스설명
structureImageDataStructure읽기페이로드에 대한 구문 분석된 구조적 해석을 가져옵니다.
compressionCompressionMethod읽기저장된 압축 방법을 가져옵니다.
raw_databytearray읽기압축 필드 뒤에 있는 원시 이미지 데이터 페이로드를 가져옵니다.

메서드

시그니처설명
__init__(compression: CompressionMethod, raw_data: bytearray, structure: ImageDataStructure)새로운 ImageData 클래스의 인스턴스를 초기화합니다.
load(reader: BigEndianReader, is_large_document: bool, height: int, channel_count: int) → "ImageData"리더에서 최종 Image Data 섹션을 로드합니다.
save(writer: BigEndianWriter)writer에 Image Data 섹션을 씁니다.
to_public_info() → PsdImageDataInfo파싱된 merged image data 구조의 읽기 전용 공개 요약을 생성합니다.

참조

 한국어