0
A
回答
2
如果你在談論Android.Graphics.Bitmap,你可以使用Bitmap.Compress(CompressFormat, Stream)到Bitmap
內容寫到一個Stream。
1
這就是JonP所指的。當然,你可以選擇任何你喜歡的格式。
using (MemoryStream stream = new MemoryStream())
{
if (bmp.Compress(Bitmap.CompressFormat.Jpeg, 80, stream))
{
//do whatever needed with stream
}
}
相關問題
- 1. LayerDrawable to bitmap
- 2. BitmapImage to Bitmap
- 3. Writeln to stream
- 4. vlc stream to Android
- 5. Byte Array to Bitmap Image android
- 6. Java Stream to String [] Array
- 7. Java Stream with :: new to Kotlin
- 8. Gstreamer rtsp stream to appsink openCV
- 9. Android Pass Bitmap to Native in 2.1 and lower
- 10. imageView.setImageResource(int resId)vs. imageView.setImageBitmap(Bitmap bitmap);
- 11. 將位圖保存到文件 - Xamarin,Monodroid
- 12. Akka Stream vs Spark Stream
- 13. 單色BitMap庫
- 14. BlackBerry Bitmap listener
- 15. 使用BITMAP
- 16. setpixel in bitmap android
- 17. ArrayList of Bitmap
- 18. Bitmap notloading in Imageview
- 19. Monodroid從url保存圖像
- 20. Android Bitmap降尺寸
- 21. Monodroid ViewPager
- 22. MonoDroid ProgressDialog
- 23. MonoDroid的:
- 24. MonoDroid net.Sockets
- 25. MonoDroid SurfaceView
- 26. MonoDroid drawable.createfromstream
- 27. monodroid Timer
- 28. MonoDroid SimpleExpandableListAdapter
- 29. MonoDroid Camera.IshutterCalBack
- 30. Monodroid Javascript回電