Sample code as follows: Bitmap bitNew = new Bitmap( 100, 10 );// Size: 100 * 10 Graphics g = Graphics.FromImage( bitNew );//Create graphics object// Compose images into one image for( int i = 0; i < 10; i++ ) g.DrawImage( yourImageArray[i], new Point( i * 10, 0 ) );// Then use "bitNew"
to 还有.如何吧这100*10的图片.吧其中的某个区域删除掉?比如删除其中的第2张图片的位置.you can read detail info about "Graphics.DrawImage" in msdn.
Bitmap bitNew = new Bitmap( 100, 10 );// Size: 100 * 10
Graphics g = Graphics.FromImage( bitNew );//Create graphics object// Compose images into one image
for( int i = 0; i < 10; i++ )
g.DrawImage( yourImageArray[i], new Point( i * 10, 0 ) );// Then use "bitNew"
这样就吧bitNew 大小固定了.如果我之后又要加入了新的图片.那么不是又要new一个bitmap对象了么?如果我的这个操作非常频繁.那么资源的浪费可以很好处理麽?
是否可以动态的调节这个bitNew 对象的大小?