Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DrawImage ¶
DrawImage returns an image that is 'img' where (only) drawing is scalad by 'scalar'. The actual image stays the same size. Only the drawing is scaled.
So, for example:
var newImage draw.Image = imgrow.Image(2, oldImage)
... would return a new image that is just like 'oldImage' except any drawing on it is 2 times as big.
Note that if you are trying to try a complex object and want the top-left corner to be at the original (unscaled) (x,y) rather (rather than the scaled position) then you need to move the top-left corner to:
xAdjusted := x / scalar yAdjusted := y / scalar
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.