我也请思归,孟子等大侠们请过来帮忙,已经是一个月的问题了,只有人顶,没人回答 ImageFormat.Tiff我没做过不过,这个后面是不是就是你保存指定的图片格式? 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 是呀,但就是不知道怎么把多个tiff图片保存成一个的tiff文件还是谢谢你 *.tif 可以這種方式保存多張圖片嗎?哪不相當成了DataBase了? 不知道大家用过Office 2003没有,扫描时是可以连续扫描,保存格式就是tif 上次用数码相机照了几张图片,传到电脑上看他拉缩略图是一张图片,用ACDSee查看他是另外一张图片,不知道为什么!!! 我查了查以前的帖子,有人说“先创建一个空的bitmap,然后从该bitmap获得一个graphics,然后往该graphics中画你那两个tif,最后把第一个创建的bitmap save就可以了。”,我试了试,确实可以把多张图片合为一张图片,但是打开看时,合成的图片显示成一页,缩略图也是一个,有谁了解tif,将一下原理好么?对了,测试代码如下 private void button1_Click(object sender, System.EventArgs e) { //Bitmap bbt=(Bitmap)Image.FromFile(@"D:\aa.tif"); int fwidth=0,fheight=0;//,swidth=0,sheight=0,twidth=0,theight=0; Bitmap sBitmap=null,tBitmap=null; Bitmap fBitmap = new Bitmap(@"D:\aa.tif"); fwidth = fBitmap.Size.Width; fheight = fBitmap.Size.Height; Bitmap b = new Bitmap(fwidth,fheight*3); Graphics g = Graphics.FromImage(b); g.DrawImage(fBitmap,0,0); g.DrawImage(fBitmap,0,fheight); g.DrawImage(fBitmap,0,fheight*2); b.Save(@"D:\ab.tif",ImageFormat.Tiff); } 又查了查,有人说用GDI+实现起来比较容易,但不知道怎么操作 我看了看,好象是用SaveAdd(),但是我不会用,有谁知道? 组合框的集合中,在属性对话框中已经设置了多条项目,如何设定显示第几条呢? 关于句柄 userdataset 与 dataset有啥区别啊? 急……高手救命! 递归方法的! 索引超出了数组界限。。。 求解 关于在屏幕上画图 不一定是在当前窗口中 一个可能无法解决的问题!但是还是想问一下。 水晶报表,我现在有个动态的dataset 如何根据这个dateset动态添加个chart到crystal report中 求解,c#new对象的代码直接写在类里面为什么可以直接执行 在html里,能给某个文本赋值吗?或给某个变量赋值? 如何得到指定DataRow在DataTable中的Index?
还是谢谢你
对了,测试代码如下
private void button1_Click(object sender, System.EventArgs e)
{
//Bitmap bbt=(Bitmap)Image.FromFile(@"D:\aa.tif");
int fwidth=0,fheight=0;//,swidth=0,sheight=0,twidth=0,theight=0;
Bitmap sBitmap=null,tBitmap=null;
Bitmap fBitmap = new Bitmap(@"D:\aa.tif");
fwidth = fBitmap.Size.Width;
fheight = fBitmap.Size.Height;
Bitmap b = new Bitmap(fwidth,fheight*3);
Graphics g = Graphics.FromImage(b);
g.DrawImage(fBitmap,0,0);
g.DrawImage(fBitmap,0,fheight);
g.DrawImage(fBitmap,0,fheight*2);
b.Save(@"D:\ab.tif",ImageFormat.Tiff);
}