`

2013.04.10——— android BitmapFactory.Options

阅读更多
2013.04.10——— android BitmapFactory.Options
参考:http://blog.csdn.net/mujianwei/article/details/8016844

public Bitmap
inBitmap
如果设置,解码选项“对象的方法,采取将尝试重用这个位图加载内容时。
public int
inDensity
使用的位图的象素密度。
public boolean
inDither
如果抖动是真实的,解码器将尝试到抖动的解码图像。
public boolean
inInputShareable
此字段一起选择inPurgeable。
public boolean
inJustDecodeBounds
如果设置为true,解码器将返回null(位图),但输出...
public boolean
inMutable
如果设置,解码方法总是返回一个可变的位图,而不是一个一成不变的。
public boolean
inPreferQualityOverSpeed
如果inPreferQualityOverSpeed​​设置为true,解码器将尝试解码重建图像以较高的质量,甚至不惜牺牲的解码速度。
publicBitmap.Config
inPreferredConfig
如果非空,这个内部配置解码器将尝试解码。
public boolean
inPurgeable
如果设置为true,则生成的位图将分配给它的像素,这样它们可以被清除,如果系统需要回收内存。
public int
inSampleSize
如果设置为> 1的值,要求的解码器,以进行子采样的原始图像,返回一个较小的图像,以节省内存。
public boolean
inScaled
当设置了这个标志,如果夏季风和inTargetDensity不为0,位图将进行调整,以符合inTargetDensity时加载,而不是依赖它每次被画到画布上的图形系统结垢。
public int
inScreenDensity
正在被使用的实际的屏幕的像素密度。
public int
inTargetDensity
目的地的像素密度的这个位图将被吸引到。
public byte[]
inTempStorage
温度存储用于解码。
public boolean
mCancel
表明,取消已经对这个对象调用的标志。
public int
outHeight
位图高度,设置独立的状态inJustDecodeBounds。
public String
outMimeType
如果知道,这个字符串解码后的图像的mime类型设置为。
public int
outWidth
位图的宽度,设置独立的状态inJustDecodeBounds。
分享到:
评论

相关推荐

    android BitmapFactory.Options使用方法详解

    BitmapFactory.Options的使用是在加载图片时,就从图片的加载和使用说起  怎样获取图片的大小? 首先我们把这个图片转成Bitmap,然后再利用Bitmap的getWidth()和getHeight()方法就可以取到图片的宽高了。 新问题又...

    BitmapFactory.Options

    BitmapFactory.Options

    多点触控显示

    import android.graphics.BitmapFactory; import android.graphics.Canvas; import android.graphics.Matrix; import android.graphics.Paint; import android.os.Bundle; import android.view.MotionEvent; import ...

    BitmapFactory_Delegate.rar_android

    Delegate implementing the native methods of android.graphics.BitmapFactory.

    Android实现图片自动轮换

    Bitmap bitmap = BitmapFactory.decodeStream(cr.openInputStream(uri)); ImageView imageView = (ImageView) findViewById(R.id.imgview_src); /* 将Bitmap设定到ImageView */ imageView.setImageBitmap(bitmap...

    android-imagedownloader:自动从code.google.compandroid-imagedownloader导出

    导入android.graphics.BitmapFactory; 导入android.os.AsyncTask; 导入android.os.Bundle; 导入android.support.design.widget.FloatingActionButton; 导入android.support.design.widget.Snackbar; 导入android....

    https-github.com-nostra13-Android-Universal-Image-Loader:Android网络通信封装

    考虑BitmapFactory.Options.inBitmap LruDiskCache 中文件的生存时间选项 特征 多线程图像加载(异步或同步) ImageLoader 配置的广泛定制(线程执行器、下载器、解码器、内存和磁盘缓存、显示图像选项等) 每个...

    炫舞吧 android 游戏开发

    import android.graphics.BitmapFactory; import android.graphics.Canvas; import android.graphics.Paint; import android.media.AudioManager; import android.media.MediaPlayer; import android.media....

    Android 使用内置的Camera应用程序捕获图像

    幸运的是,BitmapFactory中的可用方法将会调用BitmapFactory.Options类,这使得我们能够定义如何将Bitmap读入内存。具体而言,当加载图像时,可以设置BitmapFactory应该使用的采样大小。在BitmapFactory.Options中...

    图片缓存机制代码

    import android.graphics.BitmapFactory.Options; import android.util.DisplayMetrics; /** * 1.从内存中加载 * 2.本地缓存中加载 * 3.本地加载 * @author Administrator * */ public class ...

    avatar-android-可生成圆形、方形、及方形的组合头像.zip

    BitmapFactory.Options options = new BitmapFactory.Options(); options.inMutable = false; Bitmap avatar = BitmapFactory.decodeResource(getResources(), R.drawable.avatar, options); //圆形...

    OpenLocalImage:学习例子,

    导入 android.graphics.BitmapFactory; 导入 android.os.Bundle; 导入 android.provider.MediaStore; 导入 android.support.v4.app.FragmentActivity; 导入 android.support.v4.app.LoaderManager; 导入 android....

    Google Android SDK开发范例大全(完整版附部分源码).pdf

    Google Android SDK开发范例大全(完整版) ...10.5 AndroidQRCode二维条形码扫描仪——BitmapFactory.decodeByteArray 10.6 上班族今天中午要吃什么——热量骰子地图 10.7 掷杯筊——把手机放在空中甩事件处理...

    ImageScale

    获取本地图片文件 ...import android.graphics.BitmapFactory; import android.view.View; import android.view.View.OnClickListener; import android.widget.Button; import android.widget.ImageView;

    android 调用相机显示拍摄后的图片

    BitmapFactory.Options options=new BitmapFactory.Options(); options.inJustDecodeBounds=true; BitmapFactory.decodeStream(getContentResolver().openInputStream(uri), null, options); options....

    读取sd卡图片

    读取sd卡图片并且显示到出来 ... import java.io.File; import java.io.FileInputStream;... Bitmap bitmap = BitmapFactory.decodeByteArray(imagebytes, 0, imagebytes.length); return bitmap; } }

    SwitchDemo:小小的自定义开关,能够单击切换开关状态,拖动切换开关状态

    import android.graphics.BitmapFactory; import android.graphics.Canvas; import android.graphics.Paint; import android.util.AttributeSet; import android.view.MotionEvent; import android.view.View; /** ...

    Google Android SDK开发范例大全(PDF完整版4)(4-4)

    Google Android SDK开发范例大全(完整版)共4个...10.5 AndroidQRCode二维条形码扫描仪——BitmapFactory.decodeByteArray 10.6 上班族今天中午要吃什么——热量骰子地图 10.7 掷杯筊——把手机放在空中甩事件处理...

    Google Android SDK开发范例大全(PDF高清完整版1)(4-1)

    Google Android SDK开发范例大全(完整版)共4个...10.5 AndroidQRCode二维条形码扫描仪——BitmapFactory.decodeByteArray 10.6 上班族今天中午要吃什么——热量骰子地图 10.7 掷杯筊——把手机放在空中甩事件处理...

Global site tag (gtag.js) - Google Analytics