b2科目四模拟试题多少题驾考考爆了怎么补救
b2科目四模拟试题多少题 驾考考爆了怎么补救

math.cos 弧度_avatar什么意思_canvas.drawbitmap

电脑杂谈  发布时间:2017-01-28 12:02:07  来源:网络整理
canvas.drawbitmapcanvas.drawbitmap

Canvas.drawBitmap(Bitmap bitmap, Rect src, Rect dst, Paint paint)

第一个参数是图片bitmap

第二个是对图片的裁剪也就是说你想绘制图片的哪一部分

If the source rectangle is not null, it specifies the subset of the bitmap to draw.

第三个参数是该图片绘画的位置,就是你想把这张裁剪好的图片放在屏幕的什么位置上,比图片大,图片的等比拉伸,比图片小,就等比缩小

scaling/translating automatically to fill the destination rectangle

第四个是画笔Paint


本文来自电脑杂谈,转载请注明本文网址:
http://www.pc-fly.com/a/jisuanjixue/article-29178-1.html

    相关阅读
      发表评论  请自觉遵守互联网相关的政策法规,严禁发布、暴力、反动的言论

      热点图片
      拼命载入中...