Skip to content

draw.Draw ignores y-coordinate in argument sp #836

@rsaarelm

Description

@rsaarelm
Before filing a bug, please check whether it has been fixed since
the latest release: run "hg pull -u" and retry what you did to
reproduce the problem.  Thanks.

What steps will reproduce the problem?

Run the included program. It draws the bottom right part of a larger image
on a smaller image.

What is the expected output? What do you see instead?

The smaller image should get the bottom right pixel of the larger image.
Instead it gets the top right pixel of the larger image. (Output is {0 255
0 255}.)

What is your $GOOS?  $GOARCH?

linux amd64

Which revision are you using?  (hg identify)

e712aba3277f tip

Please provide any additional information below.

The bug shows up after changeset 5608:e712aba3277f.

Attachments:

  1. image.go (534 bytes)

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions