System.Drawing.Image sourceImage = System.Drawing.Image.FromStream(attachment.SourceStream) ;
//转换为jpg
if (attachment.ContentType != "image/pjpeg")
if (attachment.ContentType != "image/jpeg")
{
sourceImage.Save (ms, System.Drawing.Imaging.ImageFormat.Jpeg) ;....只能转换图片顶端的一部分,其余部分全部是噪点,完全看不清楚
//转换为jpg
if (attachment.ContentType != "image/pjpeg")
if (attachment.ContentType != "image/jpeg")
{
sourceImage.Save (ms, System.Drawing.Imaging.ImageFormat.Jpeg) ;....只能转换图片顶端的一部分,其余部分全部是噪点,完全看不清楚
解决方案 »
免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货