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
PGA的管理:
sys@felix SQL>show parameter area_size
NAME TYPE VALUE
------------------------------------ ----------------------------------------------------
bitmap_merge_area_size integer ...
分类:
数据库 时间:
2014-07-28 00:17:29
阅读次数:
413
public class MyVolumnView extends View { int count_dark = 7; final int MAX_COUNT = 15; Paint paint; Bitmap dark; Bitmap light; final...
分类:
其他好文 时间:
2014-07-27 23:20:29
阅读次数:
261
先来说一下FontMetrics这个类,这个类是关于字符属性和测量的类
用图可以更精确的知道各个属性的含义:
我们在Layout中有一个ImageView,我们可以通过:
ImageView item_image = (ImageView)findViewById(R.id.item_image);
item_image.setImageBitmap(...
分类:
移动开发 时间:
2014-07-27 11:17:32
阅读次数:
341