image

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Jan 19, 2021 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type GIFImage

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

GIFImage represents GIF iamge file that can be displayed in frame units.

func LoadGIFImageFromPath

func LoadGIFImageFromPath(path string) (*GIFImage, error)

LoadGIFImageFromPath reads the specified gif image file.

func (*GIFImage) DelayMilliSec

func (g *GIFImage) DelayMilliSec() []int

DelayMilliSec returns delay times in milliseconds.

func (*GIFImage) FileLastUpdated added in v0.2.2

func (g *GIFImage) FileLastUpdated() time.Time

FileLastUpdated returns the original file last updated datetime.

func (*GIFImage) FileName

func (g *GIFImage) FileName() string

FileName returns the original file name.

func (*GIFImage) FilePath added in v0.2.2

func (g *GIFImage) FilePath() string

FilePath returns the original file path.

func (*GIFImage) FileSizeByte

func (g *GIFImage) FileSizeByte() int64

FileSizeByte returns the original file size in bytes.

func (*GIFImage) Get

func (g *GIFImage) Get(i int) image.Image

Get returns the image of ith frame.

func (*GIFImage) Length

func (g *GIFImage) Length() int

Length returns the number of frames.

func (*GIFImage) Size

func (g *GIFImage) Size() (w, h int)

Size returns width and height of the image.

Jump to

Keyboard shortcuts

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