bugfix: capture transparent color on canvas.

Signed-off-by: liuyanghejerry <liuyanghejerry@126.com>
minor fix.

Signed-off-by: liuyanghejerry <liuyanghejerry@126.com>