summaryrefslogtreecommitdiffstats
path: root/src/com/android/gallery3d/filtershow/filters/ImageFilterBWGreen.java
blob: f4e6c61fc7e6bb97e8d56d5f9833edaa741860b5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20

package com.android.gallery3d.filtershow.filters;

import android.graphics.Bitmap;

public class ImageFilterBWGreen extends ImageFilter {

    public ImageFilterBWGreen() {
        mName = "Black & White (Green)";
    }

    native protected void nativeApplyFilter(Bitmap bitmap, int w, int h);

    public void apply(Bitmap bitmap) {
        int w = bitmap.getWidth();
        int h = bitmap.getHeight();
        nativeApplyFilter(bitmap, w, h);
    }

}