Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrEmptyImage = errors.New("no image")
View Source
var ErrImageType = errors.New("image must be is image.Image type")
Functions ¶
func CheckAngle ¶
CheckAngle is to the detection angle
Types ¶
type Builder ¶
type Builder interface { SetOptions(opts ...Option) SetResources(resources ...Resource) Clear() Make() Captcha }
Builder .
type CaptData ¶
type CaptData struct {
// contains filtered or unexported fields
}
CaptData .
func (CaptData) GetMasterImage ¶
func (c CaptData) GetMasterImage() imagedata.PNGImageData
GetMasterImage is to get master image
func (CaptData) GetThumbImage ¶
func (c CaptData) GetThumbImage() imagedata.PNGImageData
GetThumbImage is to get thumb image
type Captcha ¶
type Captcha interface { GetOptions() *Options Generate() (CaptchaData, error) // contains filtered or unexported methods }
Captcha .
type CaptchaData ¶
type CaptchaData interface { GetData() *Block GetMasterImage() imagedata.PNGImageData GetThumbImage() imagedata.PNGImageData }
CaptchaData .
type DrawCropCircleImageParams ¶
type DrawCropCircleImageParams struct { ScaleRatioSize int Rotate int SquareSize int Background image.Image Alpha float32 }
DrawCropCircleImageParams .
type DrawImage ¶
type DrawImage interface { DrawWithNRGBA(params *DrawImageParams) (img image.Image, err error) DrawWithCropCircle(params *DrawCropCircleImageParams) (image.Image, error) }
DrawImage .
type DrawImageParams ¶
DrawImageParams .
type Option ¶
type Option func(*Options)
func WithRangeThumbImageSquareSize ¶
WithRangeThumbImageSquareSize .
type Options ¶
type Options struct {
// contains filtered or unexported fields
}
func (*Options) GetRangeAngle ¶
GetRangeAngle .
func (*Options) GetRangeThumbImageSquareSize ¶
GetRangeThumbImageSquareSize .
func (*Options) GetThumbImageAlpha ¶
GetThumbImageAlpha .
Click to show internal directories.
Click to hide internal directories.