pictureBox.save图片问题 好难啊,我也有个关于picturebox的问题也,picturebox的save()选ImageFormat .icon 好像并不能保存为ico图标。 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 楼主:贴出你的代码。我从来没有遇到过类似问题呀。Image img=Image.FromFile("yourImageName.jpg");pictureBox1.Image=img;//这里可以进行其他处理pictureBox1.Image.Save("yourNewName.jpg", System.Drawing.Imaging.ImageFormat.Jpeg); 我的代码:if(this.pictureBox2 .Image !=null) { MemoryStream memoryStream=new MemoryStream (); this.pictureBox2.Image.Save (memoryStream,System.Drawing .Imaging.ImageFormat .Jpeg ); byte[] myData=new byte[memoryStream.Length ]; memoryStream.Position =0; memoryStream.Read(myData,0,(int)memoryStream.Length ); memoryStream.Close (); stu.IMAGE =myData; } SQL技术实现,超级复杂,需要大牛 如何快速搭建一个论坛 Windows 桌面连接的问题,200分,大家都来接分 两个问题:做用户控件完成增删改,xml存数据库 谁能够把RichTextBox 中的图片选择后另存为一张新的图片 请教where id in(1,2,3) 这种参数怎么做到存储过程里去? socket 发包问题 询问datagrid中编辑、更新、删除按钮列的使用技巧? 请问在.net中如何去动态加载控件呢? 在C#中如何避免不同用户对同一张表的同一条记录进行修改? 窗体访问的问题? 有人使用过Dotfuscator Community Edition 吗!!
我从来没有遇到过类似问题呀。
Image img=Image.FromFile("yourImageName.jpg");
pictureBox1.Image=img;
//这里可以进行其他处理
pictureBox1.Image.Save("yourNewName.jpg", System.Drawing.Imaging.ImageFormat.Jpeg);
if(this.pictureBox2 .Image !=null)
{
MemoryStream memoryStream=new MemoryStream ();
this.pictureBox2.Image.Save (memoryStream,System.Drawing .Imaging.ImageFormat .Jpeg );
byte[] myData=new byte[memoryStream.Length ];
memoryStream.Position =0;
memoryStream.Read(myData,0,(int)memoryStream.Length );
memoryStream.Close ();
stu.IMAGE =myData;
}