图片等比例填充rect
typedef struct Pos{
int top;
int left;
int width;
int height;
}MyPos;
newWidth,newHeight是适配后的结果,border:预留边框大小默认可为0
微信扫一扫
图片等比例填充rect
typedef struct Pos{
int top;
int left;
int width;
int height;
}MyPos;
newWidth,newHeight是适配后的结果,border:预留边框大小默认可为0
相关推荐