MCPcopy Create free account
hub / github.com/AstroImageJ/astroimagej / scale

Method scale

ij/src/main/java/ij/gui/Overlay.java:349–359  ·  view source on GitHub ↗

Returns a scaled version of this Overlay.

(double xscale, double yscale)

Source from the content-addressed store, hash-verified

347
348 /** Returns a scaled version of this Overlay. */
349 public Overlay scale(double xscale, double yscale) {
350 Overlay overlay2 = create();
351 for (int i=0; i<size(); i++) {
352 Roi roi = get(i);
353 int position = roi.getPosition();
354 roi = RoiScaler.scale(roi, xscale, yscale, false);
355 roi.setPosition(position);
356 overlay2.add(roi);
357 }
358 return overlay2;
359 }
360
361 /** Returns a rotated version of this Overlay. */
362 public Overlay rotate(double angle, double xcenter, double ycenter) {

Callers 3

runMethod · 0.95
createNewStackMethod · 0.95
scaleMethod · 0.95

Calls 7

createMethod · 0.95
sizeMethod · 0.95
getMethod · 0.95
getPositionMethod · 0.95
scaleMethod · 0.95
setPositionMethod · 0.95
addMethod · 0.95

Tested by

no test coverage detected