ninepatch

package
v1.1.1 Latest Latest
Warning

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

Go to latest
Published: Aug 27, 2023 License: Unlicense Imports: 2 Imported by: 0

Documentation

Overview

package ninepatch contains an image.Image implementation of stretchable images in 9-patch format.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Image

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

func (*Image) At

func (n *Image) At(x, y int) color.Color

func (*Image) Bounds

func (n *Image) Bounds() image.Rectangle

func (*Image) ColorModel

func (n *Image) ColorModel() color.Model

func (*Image) RGBA64At

func (n *Image) RGBA64At(x, y int) color.RGBA64

type Template

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

func New

func New(src image.Image) *Template

func (*Template) For

func (n *Template) For(r image.Rectangle) *Image

func (*Template) Padding

func (n *Template) Padding() (int, int, int, int)

Jump to

Keyboard shortcuts

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