1
WriteableBitmapEx 라이브러리를 사용하여 Windows 8 Pro에서 태블릿의 캠으로 찍은 이미지를 편집하고 있습니다. 여기,() 함수를 내가하는 getPixel 호출 할 때마다 AccessViolationException 받고 있어요 코드입니다 : 내가 잘못 무엇WriteableBitmapEx를 사용하여 픽셀 색상에 액세스 할 때 AccessViolationException이 발생했습니다.
Windows.Media.Capture.MediaCapture captureMgr = new MediaCapture();
await captureMgr.InitializeAsync();
IRandomAccessStream memoryStream = new InMemoryRandomAccessStream();
await captureMgr.CapturePhotoToStreamAsync(imageProperties, memoryStream);
await memoryStream.FlushAsync();
memoryStream.Seek(0);
WriteableBitmap tmpImage = new WriteableBitmap(1, 1);
tmpImage.SetSource(memoryStream);
tmpImage.GetPixel(1, 1); // An AccessViolationException occurs.
은?
효과가있었습니다. 고맙습니다. – Branyac
당신은 환영합니다 :) – keyboardP