BitmapProperties.SetPropertiesAsync 메서드

정의

하나 이상의 비트맵 속성을 비동기적으로 설정합니다.

public:
 virtual IAsyncAction ^ SetPropertiesAsync(IIterable<IKeyValuePair<Platform::String ^, BitmapTypedValue ^> ^> ^ propertiesToSet) = SetPropertiesAsync;
/// [Windows.Foundation.Metadata.RemoteAsync]
IAsyncAction SetPropertiesAsync(IIterable<IKeyValuePair<winrt::hstring, BitmapTypedValue const&>> const& propertiesToSet);
[Windows.Foundation.Metadata.RemoteAsync]
public IAsyncAction SetPropertiesAsync(IEnumerable<KeyValuePair<string,BitmapTypedValue>> propertiesToSet);
function setPropertiesAsync(propertiesToSet)
Public Function SetPropertiesAsync (propertiesToSet As IEnumerable(Of KeyValuePair(Of String, BitmapTypedValue))) As IAsyncAction

매개 변수

propertiesToSet

IIterable<IKeyValuePair<String,BitmapTypedValue>>

IEnumerable<KeyValuePair<String,BitmapTypedValue>>

IIterable<IKeyValuePair<Platform::String,BitmapTypedValue>>

IIterable<IKeyValuePair<winrt::hstring,BitmapTypedValue>>

설정할 비트맵 속성을 나타내는 키-값 쌍의 컬렉션입니다. 각 키는 Windows 속성 또는 메타데이터 쿼리를 포함하는 문자열이며, 해당 값은 데이터와 올바른 PropertyType이 있는 BitmapTypedValue입니다.

반환

비트맵 속성의 설정을 비동기적으로 관리하는 개체입니다.

특성

설명

BitmapPropertySet을 사용하여 인코더에 설정하려는 메타데이터 항목을 저장합니다. 각 메타데이터 항목은 키-값 쌍입니다.

키는 설정할 메타데이터 항목을 식별하는 문자열입니다. BitmapEncoder 는 WIC 메타데이터 쿼리 언어를 사용하여 생성된 쿼리뿐만 아니라 일부 Windows 속성도 허용합니다. 지원되는 Windows 속성 목록은 지원되는 Windows 속성을 참조하세요. 지원되는 WIC 메타데이터 쿼리에 대한 요약은 WIC 네이티브 이미지 형식 메타데이터 쿼리 항목을 참조하세요.

값은 실제 메타데이터 값을 명시적 데이터 형식(Windows.Foundation.PropertyType)과 연결할 수 있는 BitmapTypedValue입니다.

각 이미지 형식에는 모든 비트맵 속성의 형식에 대한 특정 요구 사항이 있으며 선택한 속성에 대해 각 BitmapTypedValue형식 필드가 올바르게 설정되어 있는지 확인해야 합니다. 예를 들어 System.Photo.Orientation Windows 속성은 파일에 UInt16으로 저장되므로 형식 필드를 UInt16으로 설정해야 합니다. Windows 속성 형식에 대한 자세한 내용은 사진 메타데이터 정책을 참조하세요. Windows 이미징 구성 요소 메타데이터 쿼리 형식에 대한 자세한 내용은 네이 티브 이미지 형식 메타데이터 쿼리를 참조하세요.

적용 대상

추가 정보