Check if camera Has Color Effect - Android Camera

Android examples for Camera:Camera Feature

Description

Check if camera Has Color Effect

Demo Code


//package com.java2s;
import java.util.List;

import android.hardware.Camera;

public class Main {
    public static boolean cameraHasColorEffect(Camera c, String colorEffect) {
        List<String> listOfColorEffects = c.getParameters()
                .getSupportedColorEffects();
        if (listOfColorEffects.indexOf(colorEffect) != -1) {
            return true;
        }/* w w w  .java  2 s .  c om*/
        return false;
    }
}

Related Tutorials