摘要: 作者:朱金灿来源:http://blog.csdn.net/clever101 上午开发时出现一个编译错误:missing ';' before 'namesapce',我仔细检查了出错的那句代码,感觉任何没有问题。删掉再重新输入也依然出现这个问题。上网查了下资料,找到了答案: This can happenwhen one includ... 阅读全文
posted @ 2012-03-01 18:11 程序员天下 阅读(186) 评论(0) 推荐(0) 编辑
摘要: 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 程序员天下 阅读(1109) 评论(1) 推荐(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 程序员天下 阅读(373) 评论(0) 推荐(0) 编辑