프로그래밍/조각코드
[WPF] 랜더타겟 이미지 스케일링 조정시(확대시) 깔끔히 나오는게!?
ngcbbs
2012. 5. 29. 18:44
image = new Image();
RenderOptions.SetBitmapScalingMode(image, BitmapScalingMode.NearestNeighbor);
음! 이건 버전이나 그런것은 모르겠고 일단 설정하는 모드가 있는듯!
BitmapScalingMode 의 멤버들.. msdn 뽑아옴~
Member name | Description | |
---|---|---|
Unspecified | Use the default bitmap scaling mode, which is Linear. | |
LowQuality | Use bilinear bitmap scaling, which is faster than HighQuality mode, but produces lower quality output. The LowQualitymode is the same as the Linear mode. | |
HighQuality | Use high quality bitmap scaling, which is slower than LowQuality mode, but produces higher quality output. TheHighQuality mode is the same as the Fant mode. | |
Linear | Use linear bitmap scaling, which is faster than HighQuality mode, but produces lower quality output. | |
Fant | Use very high quality Fant bitmap scaling, which is slower than all other bitmap scaling modes, but produces higher quality output. | |
NearestNeighbor | Use nearest-neighbor bitmap scaling, which provides performance benefits over LowQuality mode when the software rasterizer is used. This mode is often used to magnify a bitmap. |