2012-10-01 2 views
0

가능한 중복 위를 가입 할 수 있습니다 :
Combine two Images into one new Image어떻게 두 이미지 다른

나는이 개 이미지를 생성하는 C# 코드를

; 이제 두 번째 이미지 위에 첫 번째 이미지를 배치하여 이들과 조인하고 싶습니다.

이것은 내가 지금까지 무엇을했는지 있습니다 :

 var myBitmap = new Bitmap(longestLine * 40, 40); 
     var g = Graphics.FromImage(myBitmap); 
     g.Clear(Color.White); 
     var strFormat = new StringFormat { Alignment = StringAlignment.Center }; 
     g.DrawString(FirstLine, new Font("Free 3 of 9", 40), Brushes.Black, new RectangleF(0, 0, longestLine * 40, totalLines * 40), strFormat); 

     var myBitmap2 = new Bitmap(longestLine * 40, 40); 
     var g2 = Graphics.FromImage(myBitmap2); 
     g2.Clear(Color.White); 
     var strFormat2 = new StringFormat { Alignment = StringAlignment.Center }; 
     g2.DrawString(SecondLine, new Font("Free 3 of 9", 40), Brushes.Black, new RectangleF(0, 0, longestLine * 40, totalLines * 40), strFormat); 
+0

두 가지를 나란히 결합하는 방법을 알아 보려면 여기에서 시작할 수 있습니다. http://stackoverflow.com/questions/7206510/combine-two-images-into-one-new-image – MikeB

+0

Perfect! 매력처럼 일했습니다! 답변과 나는 정답으로 선택하겠습니다. – Andrew

답변

관련 문제