xlfsummer / mp-painter

声明式地创建适用于 uniapp, 原生微信小程序和原生H5的 canvas 海报

Home Page:https://mp-painter.xlf-summer.cn/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

用rounded-rect绘制圆形图片时真机出现不是完全的圆形情况

GodofSky opened this issue · comments

await this.painter.draw({
    type: "clip",
    left: size.contentleft,
    top: size.bottomViewTop,
    path: {
        type: "rounded-rect",
        width: 88,
        height: 88,
        borderRadius: 44
    },
    content: {
        type: "image",
        width: 88,
        height: 88,
        // objectFit: "cover", 
        // objectPosition: ['center','center'],
        src: userIcon
    }
});[](url)

上传个截图看看呢

一样的问题

一样的问题

请详细说明下,最好上传一个截图,thx!