Lines Matching defs:shadowSize
38 * If shadowSize is less or equals to 1, no shadow will be painted and the source image will be
42 * @param shadowSize the size of the shadow, normally {@link #SHADOW_SIZE or {@link
45 * @return an image with the shadow painted in or the source image if shadowSize <= 1
48 public static BufferedImage createDropShadow(BufferedImage source, int shadowSize) {
49 shadowSize /= 2; // make shadow size have the same meaning as in the other shadow paint methods in this class
51 return createDropShadow(source, shadowSize, 0.7f, 0);
62 * @param shadowSize the size of the shadow in pixels
66 * @return a new image with the source image on top of its shadow when shadowSize > 0 or the
70 public static BufferedImage createDropShadow(BufferedImage source, int shadowSize,
72 if (shadowSize <= 0) {
86 g2.drawImage(image, shadowSize, shadowSize, null);
91 int left = (shadowSize - 1) >> 1;
92 int right = shadowSize - left;
100 int[] aHistory = new int[shadowSize];
107 float sumDivider = shadowOpacity / shadowSize;
113 for (int x = 0; x < shadowSize; x++, bufferOffset++) {
133 if (++historyIdx >= shadowSize) {
134 historyIdx -= shadowSize;
142 for (int y = 0; y < shadowSize; y++, bufferOffset += dstWidth) {
162 if (++historyIdx >= shadowSize) {
163 historyIdx -= shadowSize;