Skip to content

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

@GodofSky

Description

@GodofSky
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)

Metadata

Metadata

Assignees

Labels

No labels
No labels

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions