Bitmap bmp = new Bitmap(pictureBox1.Image); int Height = bmp.Height; int Width = bmp.Width; Bitmap tmp = (Bitmap)bmp...
分类:
其他好文 时间:
2015-01-22 12:30:18
阅读次数:
230
///283,191 Bitmap bmp = new Bitmap(pictureBox1.Image);//创建Bitmap对象 using (Graphics g = pictureBox2.CreateGraphics()) ...
分类:
其他好文 时间:
2015-01-22 10:58:28
阅读次数:
174
private const float BRIGHTNESS = 220.0F; Graphics g = this.pictureBox2.CreateGraphics(); g.Clear(Color.White); Bitmap bmp = new ...
分类:
其他好文 时间:
2015-01-22 10:58:21
阅读次数:
228
int avg, iPixel; Color C, newC; Graphics g = this.CreateGraphics(); Bitmap bmp = new Bitmap(pictureBox1.Image); ...
分类:
其他好文 时间:
2015-01-22 10:49:06
阅读次数:
171
[name,path]=uigetfile('*.jpg;*.png;*.bmp','选择一张图片');f=imread([path name]);count = 0; T = mean2(f); done = false; while ~done countcount = co...
分类:
其他好文 时间:
2015-01-21 21:54:07
阅读次数:
378
运用DirectoryInfo类的对象我们可以轻松的实现对目录以及和目录中的文件相关的操作,假如你要获得某个目录F:\Pictures下的所有BMP文件,那么通过下面的代码就可以实现该功能。上面的代码中我们首先创建了一个DirectoryInfo对象,然后通过调用该对象的GetFiles方法获取目录...
Bitmap bmp = new Bitmap(pictureBox1.Image);//创建Bitmap对象 for (int i = 0; i < bmp.Width - 1; i++) { for (int j = 0;...
分类:
其他好文 时间:
2015-01-21 18:03:15
阅读次数:
159
本工具用于将(长宽均为 2 的指数次幂的)图像文件如 PNG、TGA、BMP、JPG 等转换为 DDS 图像(DXT 压缩类型可选,DXT1~DXT5),也可将 DDS 图像转换回此几种格式图片。 截图如下: 工具下载链接在这里。 注:本软件开发工具为 Delphi XE6 UP1,可能会...
分类:
其他好文 时间:
2015-01-17 16:22:22
阅读次数:
262
在进行Android开发的过程中,在一个非Activity类(此处假设类名为MyNewClass)中引用了getResources()方法,如下: Bitmap bmp = BitmapFactory.decodeResource(getResources(), R.drawable.marke.....
分类:
移动开发 时间:
2015-01-16 18:26:09
阅读次数:
193
在VC++ MFC编程中,我们常使用Picture Control图片控件来显示图像。下面简单归纳几种显示不同的方式:
第一种、资源位图方式显示BMP图片
如果要显示的是一张BMP位图,则可以采用这种方法,具体步骤如下:
(1)将该BMP文件拷贝到工程的res目录下;
(2)在对话框中添加一个Picture Control控件,例如:ID为IDC_STATIC1,Type设为Bitmap;...
分类:
编程语言 时间:
2015-01-08 17:58:31
阅读次数:
231