简体   繁体   中英

How to resize pixel of WriteableBitmap (windows store c#)

I searched in many forums and I didn't get what I want.

My question is clear and simple : How to resize pixel of WriteableBitmap , for example from 300*300 to 500*500

Look at the WritableBitmapEx project. You can use it or learn how to resize your image. It is easy to do it by using WritableBitmapEx extensions methods.

// Resizes the WriteableBitmap to 200px wide and 300px high using a bilinear interpolation method
var resized = writeableBmp.Resize(200, 300, WriteableBitmapExtensions.Interpolation.Bilinear);

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM