MCPcopy Create free account
hub / github.com/ArtifexSoftware/mupdf / isShrinkWrapped

Method isShrinkWrapped

platform/java/example/Viewer.java:751–758  ·  view source on GitHub ↗
(int oldPixmapWidth, int oldPixmapHeight)

Source from the content-addressed store, hash-verified

749 }
750
751 protected boolean isShrinkWrapped(int oldPixmapWidth, int oldPixmapHeight) {
752 Dimension size = pageScroll.getSize();
753 if (oldPixmapWidth == 0 && oldPixmapHeight == 0)
754 return true;
755 if (oldPixmapWidth + 4 == size.width && oldPixmapHeight + 4 == size.height)
756 return true;
757 return false;
758 }
759
760 protected void shrinkWrap() {
761 Dimension newSize = new Dimension(pixmapWidth, pixmapHeight);

Callers 1

redrawMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected