摘要:
package src.com;import android.graphics.Canvas;import android.graphics.ColorFilter;import android.graphics.PixelFormat;import android.graphics.drawable.Drawable;public class ProxyDrawable extends Drawable { private Drawable mProxy;//画图对象 public ProxyDrawable(Drawable target){//构造函数 mProxy = target.. 阅读全文
摘要:
一、如何获取 res 中的资源数据包package:android.content.res主要类:Resources其主要接口按照功能,划分为以下三部分:getXXXX()例如:int getColor(int id)Drawable getDrawable(int id)String getString(int id) 直接获取res中存放的资源InputStream openRawResource(int id) 获取资源的数据流,读取资源数据void parseBundleExtras(XmlResourceParser parser, Bundle outBundle) 从XML文件中 阅读全文
摘要:
A Drawable is a general abstraction for "something that can be drawn." Most oftenyou will deal with Drawable as the type of resource retrieved for drawing things tothe screen; the Drawable class provides a generic API for dealing with an underlyingvisual resource that may take a variety of 阅读全文
摘要:
利用获取图片尺寸与图片大小(高度与宽度)要注意一点的是要等 图片加载完成后才能js 获取图片宽度与高度的,所以要判断在readystate=="complete"的状态下获取大小,如果是利用file上传的话,每次都要点击清除 image=new image(); imgage.width与高度哦。<!doctype html public "-//w3c//dtd xhtml 1.0 transitional//en" "http://www.w3.org/tr/xhtml1/dtd/xhtml1-transitional.dtd&quo 阅读全文