请问在VB.NET中如何把两幅大小相同的图像左右或上下拼接成一张整图呢! 请问在VB.NET中如何把两幅大小相同的图像左右或上下拼接成一张整图呢! 速度如何才能最快呢,因两幅图可能像素比较大 哪位高手能帮忙吗! 最好有
代码或演示! 谢谢! __________________________________________________________________________ Bitmap a = (Bitmap)Image.FromFile( "a.bmp "); Bitmap b = (Bitmap)Image.FromFile( "b.bmp "); Bitmap c = new Bitmap(a.Width + b.Width,a.Height); Graphics g = Graphics.FromImage(c); g.DrawImage(a,0); g.DrawImage(b,a.Width,0); c.Save( "c.bmp "); __________________________________________________________________________ //左右拼接. //vb.net dim a as Bitmap = (Bitmap)Image.FromFile( "a.bmp ") dim b as Bitmap = (Bitmap)Image.FromFile( "b.bmp ") dim c as Bitmap = new Bitmap(a.Width + b.Width,a.Height) dim g as Graphics = Graphics.FromImage(c) g.DrawImage(a,0) g.DrawImage(b,0) c.Save( "c.bmp ") __________________________________________________________________________ Graphics 还可以这么用啊?学习了. __________________________________________________________________________ 学习! __________________________________________________________________________
原文链接:https://www.f2er.com/vb/263942.html