[C#/WPF] BitmapImage 엘리먼트 : DecodePixelWidth/DecodePixelHeight 속성 사용하기


■ BitmapImage 엘리먼트의 DecodePixelWidth/DecodePixelHeight 속성을 사용하는 방법을 보여준다.

예제 코드 (XAML)

※ DecodePixelWidth 특성만 설정하면 DecodePixelHeight는 이미지 원본 크기에 비례해서 설정된다.
※ DecodePixelWidth/DecodePixelHeight 특성을 설정하면 이미지 원본을 샘플링한 이미지가 된다.

분류

보관함