Home | History | Annotate | Download | only in assetstudiolib

Lines Matching defs:Effect

239      * {@link Effect}s applied. Note that drawn effects may be outside the bounds of the source
249 Effect[] effects) {
253 for (Effect effect : effects) {
254 if (effect instanceof ShadowEffect) {
255 shadowEffects.add((ShadowEffect) effect);
256 } else if (effect instanceof FillEffect) {
257 fillEffects.add((FillEffect) effect);
262 for (ShadowEffect effect : shadowEffects) {
263 if (effect.inner) {
269 AlphaComposite.SRC_OVER, (float) effect.opacity));
272 blurredImage(source, effect.radius),
273 effect.color),
274 (int) effect.xOffset, (int) effect.yOffset, null);
288 for (FillEffect effect : fillEffects) {
289 g2.setPaint(effect.paint);
294 for (ShadowEffect effect : shadowEffects) {
295 if (!effect.inner) {
302 g3.drawImage(source, (int) effect.xOffset, (int) effect.yOffset, null);
304 AlphaComposite.SRC_ATOP, (float) effect.opacity));
307 blurredImage(invertedAlphaImage(innerShadowImage), effect.radius),
308 effect.color),
402 * An effect to apply in
403 * {@link Util#drawEffects(java.awt.Graphics2D, java.awt.image.BufferedImage, int, int, Util.Effect[])}
405 public static abstract class Effect {
411 public static class ShadowEffect extends Effect {
433 public static class FillEffect extends Effect {