摘要: Java基本数据类型int 32bitshort 16bitlong 64bitbyte 8bitchar 16bitfloat 32bitdouble 64bitboolean 1bit,This data type represents one bit of information, but its "size" isn't something that's precisely defined.(ref)Java基本数据类型大小 private static void calSize() { System.out.println("Intege 阅读全文
posted @ 2012-03-01 16:06 SpringMVC+Hibernate 阅读(198) 评论(0) 推荐(0) 编辑
摘要: 学习Graphics中遇到位图(Bitmap)中getPixels()方法,对该方法的用法大体理解,但对其中的stride参数却不明白具体的用法以及用意,现记述过程如下: getPixels()方法的用处为获取位图(Bitmap)中的像素值(颜色值),存入类型为int的pixels数组中,至于从RGB转换为int数值的算法是什么,暂时不知,存疑!!Android英文SDK中有关getPixels()方法的介绍如下: public void getPixels (int[] pixels, int offset, int stride, int x, int y, int width, in 阅读全文
posted @ 2012-03-01 10:25 SpringMVC+Hibernate 阅读(214) 评论(0) 推荐(0) 编辑
友情链接:厦门事业单位