locked
Image rebuilt look blur use stream base on Image rotated from landscape to Portrait

    Question

  • The problem :

    Image rebuilt looks blur using stream base on Image rotated from landscape to Portrait

    I have rotated a image from landscape to Portrait

    problem: Image is very blur when I used this code to create the stream

    What I need to do?


    //--create new photo size:
        if (b_IsRotated)
        {
        var encoder = await BitmapEncoder.CreateAsync(BitmapEncoder.PngEncoderId, fileStream);

          encoder.SetPixelData(
          BitmapPixelFormat.Bgra8,
         BitmapAlphaMode.Ignore,
         525,
         700,
         DisplayInformation.GetForCurrentView().LogicalDpi,
         DisplayInformation.GetForCurrentView().LogicalDpi,
         pixelBuffer.ToArray());

        await encoder.FlushAsync();
        }

        _bitmap = new BitmapImage();
        _bitmap.SetSource(fileStream);

    Thanks

     

    Monday, November 03, 2014 11:00 AM

Answers

All replies