BitmapEncoder.SetPixelData 메서드

정의

프레임에서 픽셀 데이터를 설정합니다.

public:
 virtual void SetPixelData(BitmapPixelFormat pixelFormat, BitmapAlphaMode alphaMode, unsigned int width, unsigned int height, double dpiX, double dpiY, Platform::Array <byte> ^ pixels) = SetPixelData;
void SetPixelData(BitmapPixelFormat const& pixelFormat, BitmapAlphaMode const& alphaMode, uint32_t const& width, uint32_t const& height, double const& dpiX, double const& dpiY, winrt::array_view <byte> const& pixels);
public void SetPixelData(BitmapPixelFormat pixelFormat, BitmapAlphaMode alphaMode, uint width, uint height, double dpiX, double dpiY, byte[] pixels);
function setPixelData(pixelFormat, alphaMode, width, height, dpiX, dpiY, pixels)
Public Sub SetPixelData (pixelFormat As BitmapPixelFormat, alphaMode As BitmapAlphaMode, width As UInteger, height As UInteger, dpiX As Double, dpiY As Double, pixels As Byte())

매개 변수

pixelFormat
BitmapPixelFormat

픽셀 데이터의 픽셀 형식입니다.

alphaMode
BitmapAlphaMode

픽셀 데이터의 알파 모드입니다.

width
UInt32

unsigned int

uint32_t

픽셀 데이터의 너비(픽셀)입니다.

height
UInt32

unsigned int

uint32_t

픽셀 데이터의 높이(픽셀)입니다.

dpiX
Double

double

픽셀 데이터의 가로 해상도(인치당 점)입니다.

dpiY
Double

double

픽셀 데이터의 세로 해상도(인치당 점)입니다.

pixels

Byte[]

byte[]

픽셀 데이터입니다.

설명

FlushAsync, GoToNextFrameAsync 또는 GoToNextFrameAsync(IIterable(IKeyValuePair))가 호출될 때까지 데이터가 커밋되지 않으므로 이 메서드는 동기적입니다.

알 수 없는 픽셀 형식을 설정하면 오류가 발생합니다.

이 메서드는 모든 픽셀 데이터를 sRGB 색 공간에 있는 것으로 처리합니다. 이 메서드를 호출하면 포함된 색 프로필을 포함하여 프레임에서 기존 색 공간 정보를 자동으로 지웁니다.

새 이미지를 인코딩하는 경우 FlushAsync 를 최소한 호출하기 전에 이 메서드를 사용하여 픽셀 데이터를 설정해야 합니다.

적용 대상