public class PixelRecorder extends Object
Constructor and Description |
---|
PixelRecorder(Context context,
boolean recordColor)
Constructor
|
Modifier and Type | Method and Description |
---|---|
ColorRGB |
getColor()
Returns the color of the pixel associated with the processed mouse event.
|
long |
getCX()
Returns the X value of the mouse event in image coordinate space.
|
long |
getCY()
Returns the Y value of the mouse event in image coordinate space.
|
Dataset |
getDataset()
Returns the Dataset associated with the processed mouse event.
|
ChannelCollection |
getValues()
Returns the values of all the channels associated with the processed
mouse event.
|
boolean |
record(MsEvent evt)
This method takes a mouse event and records information internally
about the location, color, and type of data referenced at the mouse
position.
|
void |
releaseDataset() |
boolean |
wasAltKeyDown()
Returns true if the alt key was down during the mouse event that was
recorded.
|
public PixelRecorder(Context context, boolean recordColor)
public boolean record(MsEvent evt)
public Dataset getDataset()
public ChannelCollection getValues()
public ColorRGB getColor()
public long getCX()
public long getCY()
public boolean wasAltKeyDown()
public void releaseDataset()
Copyright © 2014–2022 ImageJ. All rights reserved.