Resize Pixel of WriteableBitmap RRS feed

  • Question

  • My question is clear and simple : how to resize pixel of WriteableBitmap ;

    for example from 300*300 to 500*500 (the Method Resize(..) didn't change 

    the PixelWidth and PixelHeight..)

    Thank you

    • Edited by Anis Derbel Thursday, April 10, 2014 10:40 AM
    Thursday, April 10, 2014 8:25 AM


  • What do you mean by resizing the pixels. You can scale or stretch the output in your Image control. You can't change the size of the pixel buffer. It is set when the WriteableBitmap is created. If you want to change the pixels buffer you'd need to remove it, scale it how you like, and then add it back into a new WriteableBitmap.
    Thursday, April 10, 2014 2:55 PM