0
点赞
收藏
分享

微信扫一扫

图像尺寸与Rect适配

其生 2022-02-22 阅读 37

图片等比例填充rect

typedef struct Pos{
    int top;
    int left;
    int width;
    int height;

}MyPos;

newWidth,newHeight是适配后的结果,border:预留边框大小默认可为0

举报

相关推荐

0 条评论