VCL BitMap Style Proceject Options->Application->Appearance
选择几个样式
使用代码设置 uses Vcl.Themes;procedure TForm1.Button1Click(Sender: TObject);beginTStyleMa...
分类:
其他好文 时间:
2014-07-29 21:29:42
阅读次数:
1013
// 复制图片的一部分procedure TForm1.Button1Click(Sender: TObject);varBitmap: TBitmap;MyRect: TRect;beginMyRect := Rect(10,10,100,100);//定义复制范围Bitmap := TBitma...
分类:
其他好文 时间:
2014-07-29 21:07:42
阅读次数:
196
通过AsyncTask来加载图片,通过Matrix来实现图片的缩放和旋转直接看程序MainAcitivy.javapackage com.example.sample_4_22;import java.util.ArrayList;import java.util.List;import andro...
分类:
其他好文 时间:
2014-07-29 20:48:22
阅读次数:
328
uses Jpeg;function BMPtoJPG(var BMPpic, JPGpic: string): boolean;var Bitmap: TBitmap; JpegImg: TJpegImage;begin result := False; Bitmap := TBitmap.Cre...
分类:
其他好文 时间:
2014-07-29 20:42:42
阅读次数:
177
Bitmap too large to be uploaded into a texture exception图片太大无法显示. 硬件加速中 OpenGL对于内存是有限制的解决方式1: 禁用硬件加速 解决方式2:比较好的解决方法是类似google map的实现:将图片分成不同的块,每次加载需要的块...
分类:
其他好文 时间:
2014-07-29 13:54:38
阅读次数:
233
※效果
※代码
/**
* 转换图片成圆形
*
* @param bitmap
* 传入Bitmap对象
* @return
*/
public Bitmap toRoundBitmap(Bitmap bitmap) {
int width = bitmap.getWidth();
int heigh...
分类:
其他好文 时间:
2014-07-29 12:57:56
阅读次数:
263
1.Activitypackage com.fit.touchimage;import android.app.Activity;import android.graphics.Bitmap;import android.graphics.BitmapFactory;import android.g...
分类:
移动开发 时间:
2014-07-29 12:43:46
阅读次数:
258
android中的ImageView只能显示矩形的图片,这样一来不能满足我们其他的需求,比如要显示圆角矩形的图片,这个时候,我们就需要自定义ImageView了,其原理就是首先获取到图片的Bitmap,然后进行裁剪对应的圆角矩形的bitmap,然后在onDraw()进行绘制圆角矩形图片输出。效果图如...
分类:
移动开发 时间:
2014-07-28 15:40:03
阅读次数:
259
android中的ImageView只能显示矩形的图片,这样一来不能满足我们其他的需求,比如要显示圆形的图片,这个时候,我们就需要自定义ImageView了,其原理就是首先获取到图片的Bitmap,然后进行裁剪圆形的bitmap,然后在onDraw()进行绘制圆形图片输出。效果图如下:自定义的圆形的...
分类:
移动开发 时间:
2014-07-28 15:35:23
阅读次数:
280
问题??用ImageView控件方法:public voidsetImageBitmap(Bitmapbm)来显示生成的bimap,结果在图片显示区域显示一片空白,而且其他控件颜色没变化,造成Imageveiw显示图片不出来的假象。问题原因是:布局背景我设置为白色,而解码生成的bitmap刚好在白色...
分类:
其他好文 时间:
2014-07-28 02:58:49
阅读次数:
170