Lines Matching refs:source

38      * If shadowSize is less or equals to 1, no shadow will be painted and the source image will be
41 * @param source the source image
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) {
51 return createDropShadow(source, shadowSize, 0.7f, 0);
61 * @param source the source image to be shadowed
66 * @return a new image with the source image on top of its shadow when shadowSize > 0 or the
67 * source image otherwise
70 public static BufferedImage createDropShadow(BufferedImage source, int shadowSize,
73 return source;
80 int width = source.getWidth();
81 int height = source.getHeight();
168 g2.drawImage(source, null, 0, 0);
176 * the given source and returns a new image with both combined
178 * @param source the source image
180 * @return the source image with a drop shadow on the bottom and right
183 public static BufferedImage createRectangularDropShadow(BufferedImage source) {
184 int type = source.getType();
189 int width = source.getWidth();
190 int height = source.getHeight();
194 g.drawImage(source, 0, 0, null);
203 * #SMALL_SHADOW_SIZE} around the given source and returns a new image with both combined
205 * @param source the source image
207 * @return the source image with a drop shadow on the bottom and right
210 public static BufferedImage createSmallRectangularDropShadow(BufferedImage source) {
211 int type = source.getType();
216 int width = source.getWidth();
217 int height = source.getHeight();
223 g.drawImage(source, 0, 0, null);