2014-06-18 35 views
0

在我正在開發的應用程序中,我想提供將圖像轉換爲選定格式(如JPG PNG TIFF等)的選項。在winforms中,我只是簡單地使用ImageFormat類,並保存圖像與選定的ImageFormat。如果沒有這個,我會如何在Windows Store應用程序中執行此操作?是否有與ImageFormat類相同的Windows Store類?

+0

http://msdn.microsoft.com/en-us/library/windows/apps/windows.graphics.imaging.bitmapencoder.createasync.aspx –

回答

0

你應該看看BitmapDecoderBitmapEncoder類。它支持相當多的格式。我有一些代碼here,爲特定的文件擴展名選擇正確的編碼器ID。

相關問題