分享一下我老师大神的人工智能教程!零基础,通俗易懂!http://blog.youkuaiyun.com/jiangjunshow
也欢迎大家转载本篇文章。分享知识,造福人民,实现我们中华民族伟大复兴!
// --------------------------------------------------------------------------------------------------------------------// <copyright file="Program.cs" company="Chimomo's Company">// Respect the work.// </copyright>// <summary>// Defines the Program type.// </summary>// --------------------------------------------------------------------------------------------------------------------namespace CSharpLearning{ using System.Drawing; using System.IO; /// <summary> /// The program. /// </summary> public static class Program { /// <summary> /// The main. /// </summary> public static void Main() { const string imageFolder = @"D:\Document\Tmp\"; var firstBitmap = new Bitmap(Path.Combine(imageFolder, "First.jpg")); var secondBitmap = new Bitmap(Path.Combine(imageFolder, "Second.jpg")); var newBitmap = new Bitmap(firstBitmap.Width + secondBitmap.Width, firstBitmap.Height); for (var i = 0; i <= firstBitmap.Width - 1; i++) { for (var j = 0; j <= firstBitmap.Height - 1; j++) { var c = firstBitmap.GetPixel(i, j); newBitmap.SetPixel(i, j, c); } } for (var i = 0; i <= secondBitmap.Width - 1; i++) { for (var j = 0; j <= firstBitmap.Height - 1; j++) { var c = secondBitmap.GetPixel(i, j); newBitmap.SetPixel(i + firstBitmap.Width, j, c); } } newBitmap.Save(Path.Combine(imageFolder, "New.jpg")); } }}// Output:/**/
给我老师的人工智能教程打call!http://blog.youkuaiyun.com/jiangjunshow
