使用Bitmap构造完成一个新的image对象,大小为xsize,ysize
[C#]
Bitmap myImage = new Bitmap( < xsize > , < ysize > );
[VB]
Dim MyImage = new Bitmap( < xsize > , < ysize > )
下面这个方法创建一个默认颜色深度的Images对象,也可以使用像素格式化的参数构造
[C#]
Bitmap myImage = new Bitmap( < xsize > , < ysize > ,PixelFormat. < format > );
[VB]
Dim MyImage = new Bitmap( < xsize > , < ysize > ,PixelFormat. < format > )

Pixel Formats valid for the creation of a bitmap image are:
Format16bppArgb1555
Format16bppGrayScale
Format16bppRgb555
Format16bppRgb565
Format1bppIndexed
Format24bppRgb
Format32bppArgb
Format32bppPArgb
Format32bppRgb
Format48bppRgb
Format4bppIndexed
Format64bppArgb
Format64bppPArgb
Format8bppIndexed
Images 可以从磁盘装在标准格式的位图文件(JPEG, GIF, TIFF or windows Bitmap)
可以使用方法 Image.FromFile 装载指定的 Image 文件
[C#]
Bitmap bm = (Bitmap)Image.FromFile( "
1<filename> " );
2
3
4
5
6
7
8 [VB]
9
10 Dim bm as Bitmap = CType (Image.FromFile( " <filename "=""> ),Bitmap)
11
12
13
14[待续...]</filename></filename>