RadiusBorder

Draw rounded corners on the image.

Parameters

Parameter
Type
Description

radius

int

The radius of rounded corners.

Return Values

The instance of *imgo.Image .

Examples

package main

import (
    "github.com/fishtailstudio/imgo"
    "image/color"
)

func main() {
    imgo.Canvas(300, 300, color.White).
        BorderRadius(30).
        Save("out.png")
}

Last updated