• 大小: 869KB
    文件类型: .rar
    金币: 1
    下载: 0 次
    发布日期: 2021-06-06
  • 语言: Java
  • 标签: 实时  动态  swing  ios7  

资源简介

实时、动态的毛玻璃效果,javaSwing 实现的,ios7的毛玻璃效果可以让用户的注意力集中到他需要注意的地方,本demo根据之前写的例子改变而来,实现了实时、动态的毛玻璃效果,希望给有需要的人一点帮助,因为花了点时间,就用8分吧,嘿嘿!

资源截图

代码片段和文件信息

/*
 * Copyright (c) 2007 Romain Guy
 * All rights reserved.
 *
 * Redistribution and use in source and binary forms with or without
 * modification are permitted provided that the following conditions
 * are met:
 *
 *   * Redistributions of source code must retain the above copyright
 *     notice this list of conditions and the following disclaimer.
 *   * Redistributions in binary form must reproduce the above
 *     copyright notice this list of conditions and the following
 *     disclaimer in the documentation and/or other materials provided
 *     with the distribution.
 *   * Neither the name of the Timingframework project nor the names of its
 *     contributors may be used to endorse or promote products derived
 *     from this software without specific prior written permission.
 *
 * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
 * “AS IS“ AND ANY EXPRESS OR IMPLIED WARRANTIES INCLUDING BUT NOT
 * LIMITED TO THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
 * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
 * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT INDIRECT INCIDENTAL
 * SPECIAL EXEMPLARY OR CONSEQUENTIAL DAMAGES (INCLUDING BUT NOT
 * LIMITED TO PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE
 * DATA OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
 * THEORY OF LIABILITY WHETHER IN CONTRACT STRICT LIABILITY OR TORT
 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
 * OF THIS SOFTWARE EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
 */

import java.awt.Rectangle;
import java.awt.RenderingHints;
import java.awt.geom.Point2D;
import java.awt.geom.Rectangle2D;
import java.awt.image.BufferedImage;
import java.awt.image.BufferedImageOp;
import java.awt.image.ColorModel;

/**
 * 

Provides an abstract implementation of the BufferedImageOp
 * interface. This class can be used to created new image filters based
 * on BufferedImageOp.


 *
 * @author Romain Guy 
 */

public abstract class AbstractFilter implements BufferedImageOp {
    public abstract BufferedImage filter(BufferedImage src BufferedImage dest);

    /**
     * {@inheritDoc}
     */
    public Rectangle2D getBounds2D(BufferedImage src) {
        return new Rectangle(0 0 src.getWidth() src.getHeight());
    }

    /**
     * {@inheritDoc}
     */
    public BufferedImage createCompatibleDestImage(BufferedImage src
                                                   ColorModel destCM) {
        if (destCM == null) {
            destCM = src.getColorModel();
        }

        return new BufferedImage(destCM
                                 destCM.createCompatibleWritableRaster(
                                         src.getWidth() src.getHeight())
                                 destCM.isAlphaPremultiplied() null);
    }

   

 属性            大小     日期    时间   名称
----------- ---------  ---------- -----  ----

     文件        301  2014-08-08 15:13  aerodemo\.classpath

     文件        384  2014-08-08 15:13  aerodemo\.project

     文件        629  2014-08-08 15:13  aerodemo\.settings\org.eclipse.jdt.core.prefs

     文件     296977  2014-08-08 18:13  aerodemo\aerodemo.jar

     文件       1760  2014-08-08 15:14  aerodemo\bin\AbstractFilter.class

     文件        506  2014-08-08 18:12  aerodemo\bin\AeroDemo$1.class

     文件       1243  2014-08-08 18:12  aerodemo\bin\AeroDemo$MyListener.class

     文件       4733  2014-08-08 18:12  aerodemo\bin\AeroDemo.class

     文件       1587  2014-08-08 18:07  aerodemo\bin\AeroPane$ReflectionRepaintManager.class

     文件       4647  2014-08-08 18:07  aerodemo\bin\AeroPane.class

     文件       2856  2014-08-08 15:15  aerodemo\bin\FastBlurFilter.class

     文件       7028  2014-08-08 15:15  aerodemo\bin\GraphicsUtilities.class

     文件      37625  2014-02-10 10:04  aerodemo\bin\images\deathvalley.jpg

     文件     250883  2014-08-08 18:05  aerodemo\bin\images\hupo.jpg

     文件       1789  2014-08-08 15:15  aerodemo\bin\StackBlurFilter.class

     文件       3271  2014-02-10 10:04  aerodemo\src\AbstractFilter.java

     文件       4458  2014-08-08 18:12  aerodemo\src\AeroDemo.java

     文件       5096  2014-08-08 18:07  aerodemo\src\AeroPane.java

     文件       7934  2014-02-10 10:04  aerodemo\src\FastBlurFilter.java

     文件      26699  2014-02-10 10:04  aerodemo\src\GraphicsUtilities.java

     文件      37625  2014-02-10 10:04  aerodemo\src\images\deathvalley.jpg

     文件     250883  2014-08-08 18:05  aerodemo\src\images\hupo.jpg

     文件       5547  2014-02-10 10:04  aerodemo\src\StackBlurFilter.java

     目录          0  2014-08-08 18:06  aerodemo\bin\images

     目录          0  2014-08-08 18:06  aerodemo\src\images

     目录          0  2014-08-08 15:13  aerodemo\.settings

     目录          0  2014-08-08 17:54  aerodemo\bin

     目录          0  2014-08-08 17:54  aerodemo\src

     目录          0  2014-08-08 18:13  aerodemo

----------- ---------  ---------- -----  ----

............此处省略2个文件信息

评论

共有 条评论