lib

package
v1.0.7 Latest Latest
Warning

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

Go to latest
Published: Jan 20, 2021 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ShapeMaskCircle    string = "circle"
	ShapeMaskRoundrect string = "rounded"
	ShapeDiamond       string = "diamond"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type ConfigProvider

type ConfigProvider struct {
	ConfigFile string
	ConfigData configData
}

func (*ConfigProvider) Initialize

func (cp *ConfigProvider) Initialize(configFile string) error

type IconConfig

type IconConfig struct {
	Width  uint
	Height uint
	Radius uint
	Type   string
	Name   string
}

type IconSet

type IconSet struct {
	Prefix      string
	Icons       []IconConfig
	RemoveAlpha bool
}

type MagickCropper

type MagickCropper struct {
	*imagick.MagickWand
}

func (MagickCropper) GetAspect

func (mc MagickCropper) GetAspect() float32

func (MagickCropper) ShapeImage

func (mc MagickCropper) ShapeImage(t string, param float64) error

func (MagickCropper) SmartCrop

func (mc MagickCropper) SmartCrop(w, h uint) error

Jump to

Keyboard shortcuts

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