query

package
v0.0.0-...-a82dea4 Latest Latest
Warning

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

Go to latest
Published: Sep 30, 2014 License: MIT Imports: 18 Imported by: 0

Documentation

Index

Constants

View Source
const (
	MAX_RATIO = 6
	MIN_RATIO = 0.08
)
View Source
const (
	NOPROTO = 1
	URIFULL = 2
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Options

type Options struct {
	Base       *Source
	Scale      *Scale
	CropRoi    *Roi
	Format     string
	Method     int
	Quality    int
	Alpha      float64
	Foreground *Source
	Mask       *Source
	BlendRoi   *Roi
}

func (*Options) Construct

func (*Options) Construct(i ...interface{}) *Options

type PixelDim

type PixelDim struct {
	Width  int
	Height int
}

type Rect

type Rect struct {
	X      int
	Y      int
	Width  int
	Height int
}

type Roi

type Roi struct {
	InitArea *Rect
	// contains filtered or unexported fields
}

func (*Roi) Calc

func (this *Roi) Calc(orig *PixelDim) *Rect

func (*Roi) Construct

func (*Roi) Construct(i ...interface{}) *Roi

->x,y,w,h 4

this.InitArea{x,y,w,h}
this.calc = nil
<- InitArea

->center,w,h 3

this.InitArea{0,0,w,h}
this.calc = handlers["center"]
<- calculated x,y from source image (w,h are user defined)

->x,y 2

this.InitArea{x,y,0,0}
this.calc = nil
<- InitArea (w,h are 0)

type Scale

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

func (*Scale) Construct

func (*Scale) Construct(i ...interface{}) *Scale

func (*Scale) Size

func (this *Scale) Size(src *PixelDim) *PixelDim

type Source

type Source struct {
	BlobLen int

	Imgcfg image.Config
	// contains filtered or unexported fields
}

func (*Source) Blob

func (this *Source) Blob() []byte

func (*Source) Config

func (this *Source) Config() *image.Config

func (*Source) Construct

func (*Source) Construct(i ...interface{}) *Source
func (this *Source) Link() string

func (*Source) LinkFull

func (this *Source) LinkFull() string

func (*Source) Mime

func (this *Source) Mime() string

func (*Source) Size

func (this *Source) Size() *PixelDim

func (*Source) Type

func (this *Source) Type() string

Jump to

Keyboard shortcuts

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