xdraw

package
v1.0.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 4, 2023 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Border

func Border(src image.Image, width int, colors ...string) image.Image

Border 外边框

func Circle

func Circle(src image.Image) image.Image

Circle 圆形

func Resize

func Resize(src image.Image, w, h int) image.Image

Resize ...

func Rounded

func Rounded(src image.Image, p float64) image.Image

Rounded 圆角处理 p: 圆角率, 范围 0 - 1, 默认 0.25

func WatermarkImage

func WatermarkImage(src, w image.Image, p image.Point) image.Image

WatermarkImage ...

func WatermarkText

func WatermarkText(src image.Image, text string, color string, size, x, y float64) image.Image

WatermarkText ...

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL