小编Kar*_*hik的帖子

如何在位图周围制作外发光效果?

我为我的位图图像视图创建了发光效果。它可以工作,但我的外部发光颜色有问题。

这是我预期的设计外发光颜色:

http://www.flashcomponents.net/component/professional-3d-carousel-as2-and-as3.html请看链接

但是我的发光效果看起来不太好请帮助我如何制作预期的发光效果?这是我的代码:

public class MainActivity extends Activity {

    @Override
    public void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_main);
        int margin = 24;
        int halfMargin = margin / 2;

        // the glow radius
        int glowRadius = 16;

        // the glow color
        int glowColor = Color.rgb(0, 192, 255);

        // The original image to use
        Bitmap src = BitmapFactory.decodeResource(getResources(),
                R.drawable.ic_launcher);

        // extract the alpha from the source image
        Bitmap alpha = src.extractAlpha();

        // The output bitmap (with the icon + glow)
        Bitmap …
Run Code Online (Sandbox Code Playgroud)

android blur glow

6
推荐指数
0
解决办法
6598
查看次数

如何在android中比较两个日期和时间

我有一个问题.如何比较2日期和时间

enter code here
if(fromdate<=nowdt.now() && todate>= nowdt.now()){
////

}
Run Code Online (Sandbox Code Playgroud)

java android

0
推荐指数
1
解决办法
1万
查看次数

标签 统计

android ×2

blur ×1

glow ×1

java ×1