image

package module
v1.6.0 Latest Latest
Warning

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

Go to latest
Published: Apr 29, 2024 License: Apache-2.0 Imports: 11 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Decode

func Decode(ctx context.Context, args ...object.Object) object.Object

func Encode

func Encode(ctx context.Context, args ...object.Object) object.Object

func Module

func Module() *object.Module

Types

type Image

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

func NewImage

func NewImage(image image.Image, format string) *Image

func (*Image) Bounds

func (img *Image) Bounds() *object.Map

func (*Image) Compare

func (img *Image) Compare(other object.Object) (int, error)

func (*Image) Cost

func (img *Image) Cost() int

func (*Image) Dimensions

func (img *Image) Dimensions() *object.Map

func (*Image) Equals

func (img *Image) Equals(other object.Object) object.Object

func (*Image) GetAttr

func (img *Image) GetAttr(name string) (object.Object, bool)

func (*Image) Inspect

func (img *Image) Inspect() string

func (*Image) Interface

func (img *Image) Interface() interface{}

func (*Image) IsTruthy

func (img *Image) IsTruthy() bool

func (*Image) MarshalJSON

func (img *Image) MarshalJSON() ([]byte, error)

func (*Image) Read

func (img *Image) Read(p []byte) (int, error)

Read implements the io.Reader interface, by encoding the image to its default or original encoding.

func (*Image) RunOperation

func (img *Image) RunOperation(opType op.BinaryOpType, right object.Object) object.Object

func (*Image) SetAttr

func (img *Image) SetAttr(name string, value object.Object) error

func (*Image) Size

func (img *Image) Size() (int, int)

func (*Image) String

func (img *Image) String() string

func (*Image) Type

func (img *Image) Type() object.Type

func (*Image) Value

func (img *Image) Value() image.Image

Jump to

Keyboard shortcuts

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