码迷,mamicode.com
首页 > 移动开发 > 详细

Android零碎知识(一)

时间:2014-12-10 10:40:13      阅读:195      评论:0      收藏:0      [点我收藏+]

标签:des   android   style   blog   http   io   ar   color   os   

public abstract Resources getResources ()

Return a Resources instance for your application‘s package.

 

 

BitmapFactory
extends Object

java.lang.Object 
   ? android.graphics.BitmapFactory 

Class Overview

--------------------------------------------------------------------------------

Creates Bitmap objects from various sources, including files, streams, and byte-arrays. 

 

public void translate (float dx, float dy) 
Added in API level 1
Preconcat the current matrix with the specified translation



When working with matrices, the word concatenation refers to multiplication.

Since matrix multiplication is not commutative, there is a separate word for backwards multiplication.
Pre-concatenating a to b means setting a = b × a. (As opposed to a = a × b, which will give a different matrix)

The canvas maintains a matrix and the canvas is manipulated by methods which are well defined in OpenGL

 

Android零碎知识(一)

标签:des   android   style   blog   http   io   ar   color   os   

原文地址:http://www.cnblogs.com/hixin/p/4154688.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!