Skip to content

consolidated graphics problems test #5308

Description

@ddyer0

This consolidates my other graphics bug reports into a single test program, updated
to the current state of bug fixes. The test program cycles through 16 different cominations
of clipping, scaling, and rotation when drawing images.

First, here's the correct picture for step 15, which is the most complex. This was generated
from standard desktop java.

Image

Here is the simulator's picture

Image

Here is the android picture

Image

Here is the ios picture

Image

Here is the test program

Dtest.java

Some notes.

The yellow rectangles at the lower-right of the clipping box are evidence of the clipping
region drifting due to repeated applications of rotateRadians. The underlying problem
is that the clip coordinates start as integers, but when transformed become floats, and
rounding errors occur. This isn't fundamentally curable, but can be mitigated by more
attention to rounding (knowing that the actual values are integers).

The Y offset of the black rectangle inside the clipping region is because of the extra Y
added when scale is not 1

The images displayed outside the clipping region are some more fundamental problem.

the outlines of the image rectangles, offset by some factor from the correct position, are
a problem with transformPoint combined with rotation.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions