Merge 7d1944723b
into f52c8a71af
This commit is contained in:
commit
2747a5269a
1 changed files with 2 additions and 0 deletions
|
@ -59,6 +59,8 @@ func NewGraphicContext(img draw.Image) *GraphicContext {
|
|||
switch selectImage := img.(type) {
|
||||
case *image.RGBA:
|
||||
painter = raster.NewRGBAPainter(selectImage)
|
||||
case *image.Gray:
|
||||
painter = raster.NewGRAYPainter(selectImage)
|
||||
default:
|
||||
panic("Image type not supported")
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue