Created
December 7, 2009 09:10
-
-
Save taka2/250727 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| using System; | |
| using System.Drawing; | |
| public class CSharpTest | |
| { | |
| static void Main(string[] args) | |
| { | |
| Bitmap b = new Bitmap("a.jpg"); | |
| Bitmap newImage = new Bitmap(b.Width, b.Height * 2, Graphics.FromImage(b)); | |
| Graphics g = Graphics.FromImage(newImage); | |
| g.DrawImage(b, 0, 0); | |
| g.DrawImage(b, 0, b.Height); | |
| newImage.Save("hoge.jpg"); | |
| } | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment