Android零碎知识(一)

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

 

郑重声明:本站内容如果来自互联网及其他传播媒体,其版权均属原媒体及文章作者所有。转载目的在于传递更多信息及用于网络分享,并不代表本站赞同其观点和对其真实性负责,也不构成任何其他建议。