android decodestream,Android开发中,BitmapFactory.decodeStream(InputStream is, Rect outPadding, Options ...

满意答案

02ae427d08e371d7e90d5b995e828d6d.png

soucuqi382

2014.05.19

02ae427d08e371d7e90d5b995e828d6d.png

采纳率:41%    等级:10

已帮助:970人

public static Bitmap decodeStream(InputStream is, Rect outPadding, BitmapFactory.Options opts)

Since: API Level 1

Decode an input stream into a bitmap. If the input stream is null, or

cannot be used to decode a bitmap, the function returns null.

The stream's position will be where ever it was after the encoded data

was read.

Parameters

is

The input stream that holds the raw data to be decoded into a bitmap.

outPadding

If not null, return the padding rect for the bitmap if it exists, otherwise set padding to [-1,-1,-1,-1]. If

no bitmap is returned (null) then padding is

unchanged.

opts

null-ok; Options that control downsampling and whether the image should be completely decoded, or just is size returned.

Returns

The decoded bitmap, or null if the image data could not be

decoded, or, if opts is non-null, if opts requested only the

size be returned (in opts.outWidth and opts.outHeight)

习惯从API了解

03分享举报

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值