NOTICE! This is a static HTML version of a legacy ImageJ Trac ticket.

The ImageJ project now uses GitHub Issues for issue tracking.

Please file all new issues there.

Ticket #1190 (closed defect: moved)

Opened 2012-05-18T15:26:28-05:00

Last modified 2013-01-22T12:44:54-06:00

Drawing tools are misaligned on panned/zoomed images

Reported by: curtis Owned by: curtis
Priority: major Milestone: imagej2-unscheduled
Component: Tools Version:
Severity: major Keywords:
Cc: Blocked By:
Blocking: #1326

Description

Open Blobs, zoom in, try to draw with paintbrush. Or just size the window smaller then move the scroll bars to pan. Or zoom in, then back out again. The drawn line no longer tracks the mouse properly.

Change History

comment:1 Changed 2012-05-18T15:29:26-05:00 by dscho

It seems as if the offset is applied twice. IOW if you scroll down so that the top-most pixels have y-coordinate 20, the y-offset with which things are drawn is 40, not 20.

comment:2 Changed 2012-05-18T16:05:59-05:00 by bdezonia

  • Owner changed from curtis to bdezonia
  • Status changed from new to assigned

comment:3 Changed 2012-05-18T17:00:28-05:00 by bdezonia

Note even the probe coordinates are wrong when zoom level changes. The origin of the image reports numbers much larger than 0,0 and zoomin in and out does not return to a good known state.

comment:4 Changed 2012-05-21T10:21:00-05:00 by bdezonia

  • Owner changed from bdezonia to curtis

Curtis, I think you and/or Lee had recently changed the definition of window origins and panel origins during the display refactoring. Please take a look at this or comment and assign back.

comment:5 Changed 2012-06-25T15:07:45-05:00 by curtis

  • Blocking 1185 added

comment:6 Changed 2012-07-05T16:53:33-05:00 by curtis

As of 1bb013f3, the drawing tools are no longer wildly off, but rather always off by one data index (plus one screen pixel) in both X and Y. The bug is due to a coordinate system skew between the JHotDrawImageCanvas and DefaultImageCanvas. See also #716 for another symptom of the same bug.

comment:7 Changed 2012-07-12T10:58:20-05:00 by curtis

  • Version 2.0.0-beta2 deleted
  • Blocking 1326 added; 1185 removed
  • Milestone changed from imagej-2.0.0-beta3 to imagej-2.0.0-beta4

comment:8 Changed 2012-09-06T14:12:21-05:00 by curtis

  • Milestone changed from imagej-2.0.0-beta4 to imagej-2.0.0-beta5

comment:9 Changed 2013-01-22T12:44:54-06:00 by bdezonia

  • Milestone changed from imagej2-b7-ndim-data to imageJ-2.0.0-TO-REFILE

comment:10 Changed 2014-12-18T12:54:37-06:00 by curtis

  • Status changed from assigned to closed
  • Resolution set to moved