You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
17 lines
456 B
17 lines
456 B
namespace EC.Utils.ImageHelpers
|
|
{
|
|
public partial class ImageHelper1
|
|
{
|
|
//将Bitmap对象转换成bitmapImage对象
|
|
//public BitmapImage ConvertBitmapToBitmapImage(Bitmap bitmap)
|
|
//{
|
|
// MemoryStream stream = new MemoryStream();
|
|
// bitmap.Save(stream, ImageFormat.Bmp);
|
|
// BitmapImage image = new BitmapImage();
|
|
// image.BeginInit();
|
|
// image.StreamSource = stream;
|
|
// image.EndInit();
|
|
// return image;
|
|
//}
|
|
}
|
|
}
|