Android中的DrawRect()参数解析

    xiaoxiao2021-03-25  109

    官方文档中的定义:

    drawRect(float left, float top, float right, float bottom, Paint paint) 1 1

    Draw the specified Rect using the specified paint.

    下面我用一张图来解析各个参数。

    X轴为手机顶部,y轴为手机左边,各个参数的意思就是到这两边的距离。

    转载请注明原文地址: https://ju.6miu.com/read-20427.html

    最新回复(0)