http://macleo.iteye.com/blog/1544948
Java代码
freetye-config --cflags
2.C语言的用处其实还是很大的....C++也一样,不经意处C语言还在发挥着巨大的作用
3.踏破铁鞋无觅处啊
http://zhiweiofli.iteye.com/blog/905069
4.Bitmap旋转
http://blog.sina.com.cn/s/blog_625defdd0100qlcl.html
Java代码
public static Bitmap rotate(Bitmap b, int degrees) {
if (degrees != 0 && b != null) {
Matrix m = new Matrix();
m.setRotate(degrees,
(float) b.getWidth() / 2, (float) b.getHeight() / 2);
try {
Bitmap b2 = Bitmap.createBitmap(
b, 0, 0, b.getWidth(), b.getHeight(), m, true);
if (b != b2) {
b.recycle(); //Android开发网再次提示Bitmap操作完应该显示的释放
b = b2;
}
} catch (OutOfMemoryError ex) {
// Android123建议大家如何出现了内存不足异常,最好return 原始的bitmap对象。.
}
}
return b;
}
5.drawText旋转
http://stackoverflow.com/questions/5743027/how-to-rotate-text-using-canvas-in-android