ninepatch

package
v1.4.1 Latest Latest
Warning

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

Go to latest
Published: Apr 23, 2026 License: Unlicense Imports: 3 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 Template

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

func New

func New(src image.RGBA64Image) *Template

func (*Template) Add added in v1.3.2

func (n *Template) Add(ops op.Ctx, r image.Rectangle, mask bool) image.Rectangle

func (*Template) Bounds added in v1.3.2

func (n *Template) Bounds(r image.Rectangle) image.Rectangle

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