2
Nokia Imaging SDK를 사용하여 WP8 앱을 개발 중입니다. 이미지에 필터 효과를 추가하고 WriteableBitmap
으로 렌더링하려고합니다.WriteableBitmapRenderer.RenderAsync() ArgumentException "값이 예상되는 범위 내에 있지 않습니다."
await renderer.RenderAsync();
이 ArgumentException
가 발생합니다 :
Value does not fall within the expected range
내가 생각이 라인이 처리 될 때 모두가 잘 진행되지만,
private async void PhotoChosen(object sender, PhotoResult photoResult)
{
if (photoResult != null)
{
BitmapImage bitmap = new BitmapImage();
bitmap.SetSource(photoResult.ChosenPhoto);
WriteableBitmap wb = new WriteableBitmap(bitmap.PixelWidth, bitmap.PixelHeight);
StreamImageSource source = new StreamImageSource(photoResult.ChosenPhoto);
var effects = new FilterEffect(source);
effects.Filters = new IFilter[] { new SketchFilter() };
var renderer = new WriteableBitmapRenderer(effects, wb);
await renderer.RenderAsync();
}
}
: 여기
내 코드입니다IImageProvider effects
또는
WriteableBitmap wb
을 만드는 데 실수했습니다.
누구든지이 문제가있어 문제를 발견 했습니까? 감사합니다 :)
문제가 해결되었습니다. 타이 매우! :디 – McSIME