1 Star 0 Fork 12

asktalk / gocaptcha

forked from hanguofeng / gocaptcha 
加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
imagefilter.go 800 Bytes
一键复制 编辑 原始数据 按行查看 历史
hanguofeng 提交于 2014-01-27 14:09 . add test
// Copyright 2013 hanguofeng. All rights reserved.
// Use of this source code is governed by a MIT-style
// license that can be found in the LICENSE file.
package gocaptcha
import ()
//ImageFilter is the interface of image filter
type ImageFilter interface {
Proc(cimage *CImage)
GetId() string
SetConfig(FilterConfigGroup)
GetConfig() FilterConfigGroup
}
//ImageFilter is the base class of image filter
type ImageFilterBase struct {
config FilterConfigGroup
}
func (filter *ImageFilterBase) Proc(cimage *CImage) {
panic("not impl")
}
func (filter *ImageFilterBase) GetId() string {
panic("not impl")
}
func (filter *ImageFilterBase) SetConfig(config FilterConfigGroup) {
filter.config = config
}
func (filter *ImageFilterBase) GetConfig() FilterConfigGroup {
return filter.config
}
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/asktalk/gocaptcha.git
git@gitee.com:asktalk/gocaptcha.git
asktalk
gocaptcha
gocaptcha
master

搜索帮助

344bd9b3 5694891 D2dac590 5694891