/** * Sets the source region (AOI) for the new image. * * @param pRegion the source region */ public void setSourceRegion(final Rectangle pRegion) { // Re-fetch everything, if region changed if (x != pRegion.x || y != pRegion.y || width != pRegion.width || height != pRegion.height) { dispose(); } x = pRegion.x; y = pRegion.y; width = pRegion.width; height = pRegion.height; }
/** * Sets the source subsampling for the new image. * * @param pXSub horizontal subsampling factor * @param pYSub vertical subsampling factor */ public void setSourceSubsampling(int pXSub, int pYSub) { // Re-fetch everything, if subsampling changed if (xSub != pXSub || ySub != pYSub) { dispose(); } if (pXSub > 1) { xSub = pXSub; } if (pYSub > 1) { ySub = pYSub; } }
/** * Sets the source region (AOI) for the new image. * * @param pRegion the source region */ public void setSourceRegion(final Rectangle pRegion) { // Re-fetch everything, if region changed if (x != pRegion.x || y != pRegion.y || width != pRegion.width || height != pRegion.height) { dispose(); } x = pRegion.x; y = pRegion.y; width = pRegion.width; height = pRegion.height; }
/** * Sets the source region (AOI) for the new image. * * @param pRect the source region */ public void setSourceRegion(Rectangle pRect) { // Refetch everything, if region changed if (mX != pRect.x || mY != pRect.y || mWidth != pRect.width || mHeight != pRect.height) { dispose(); } mX = pRect.x; mY = pRect.y; mWidth = pRect.width; mHeight = pRect.height; }
/** * Sets the source subsampling for the new image. * * @param pXSub horizontal subsampling factor * @param pYSub vertical subsampling factor */ public void setSourceSubsampling(int pXSub, int pYSub) { // Re-fetch everything, if subsampling changed if (xSub != pXSub || ySub != pYSub) { dispose(); } if (pXSub > 1) { xSub = pXSub; } if (pYSub > 1) { ySub = pYSub; } }
/** * Sets the source subsampling for the new image. * * @param pXSub horisontal subsampling factor * @param pYSub vertical subsampling factor */ public void setSourceSubsampling(int pXSub, int pYSub) { // Refetch everything, if subsampling changed if (mXSub != pXSub || mYSub != pYSub) { dispose(); } if (pXSub > 1) { mXSub = pXSub; } if (pYSub > 1) { mYSub = pYSub; } }