gifx

package
v1.0.12 Latest Latest
Warning

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

Go to latest
Published: Mar 7, 2022 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Gif

type Gif struct {
	// contains filtered or unexported fields
}

func CreateGif

func CreateGif(images []*img.Image, delay []int, loopCount int) (*Gif, error)

Generate generates gif using the given images.

用给定的一系列图片生成一张gif。

func LoadFromLocalFile

func LoadFromLocalFile(path string) (*Gif, error)

LoadFromLocalFile 从文件加载gif

func LoadFromReader

func LoadFromReader(reader io.Reader) (*Gif, error)

LoadFromReader 从流加载gif

func NewGif

func NewGif(gif *gif.GIF) *Gif

NewGif 构造一个新Gif类

func (*Gif) AddWaterMark

func (src *Gif) AddWaterMark(watermark *img.Image, anchor imaging.Anchor, paddingX int, paddingY int, opacity float64) (*Gif, error)

AddWaterMark adds a watermark to this image.

为次图像添加水印。

func (*Gif) GetSource

func (src *Gif) GetSource() *gif.GIF

GetSource 获取原gif

Jump to

Keyboard shortcuts

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