Auto resizing type

This commit is contained in:
DarthSim
2019-06-24 18:50:17 +06:00
parent 8517402e7e
commit c2ce5c5850
4 changed files with 20 additions and 3 deletions

View File

@@ -58,12 +58,14 @@ const (
resizeFit resizeType = iota
resizeFill
resizeCrop
resizeAuto
)
var resizeTypes = map[string]resizeType{
"fit": resizeFit,
"fill": resizeFill,
"crop": resizeCrop,
"auto": resizeAuto,
}
type rgbColor struct{ R, G, B uint8 }