Giter Site home page Giter Site logo

Comments (3)

vanevery avatar vanevery commented on May 23, 2024

Still need more image overlays: "bryanize", "nathanize", smily, mask, cat
See if djhalliday can create overlay images

from obscuracam.

vanevery avatar vanevery commented on May 23, 2024

Add constants in ImageRegion.java

/*
 * Add each ObscureMethod to this list and update the 
 * createObscuredBitmap method in ImageEditor
 */
public static final int BLUR = 0; // BlurObscure
public static final int ANON = 1; // AnonObscure
public static final int SOLID = 2; // PaintSquareObscure
public static final int PIXELIZE = 3; // PixelizeObscure
int obscureType = SOLID;

Add code segment in quick action area:

        anonObscureAction = new ActionItem();
        anonObscureAction.setTitle("Anonomize Obscure");
        anonObscureAction.setIcon(this.getResources().getDrawable(R.drawable.ic_context_destroy));
        anonObscureAction.setOnClickListener(new OnClickListener() {
            public void onClick(View v) {
                qa.dismiss();
                whatToDo = OBSCURE;
                obscureType = ANON;
            }
        });
        qa.addActionItem(anonObscureAction);

from obscuracam.

vanevery avatar vanevery commented on May 23, 2024

Also add code segment to ImageEditor.java createObscuredBitmap

while (i.hasNext())
{
ImageRegion currentRegion = i.next();

        // Would like this to not be dependent on knowing the relationship between 
        // the classes and the constants in ImageRegion.  Would like there to be a 
        // method within ImageRegion that creates the ObscureMethod object and passes
        // it back.  Right now though, all of the ObscureMethods take in different
        // arguments which makes it painful.
        // Select the ObscureMethod as contained in the ImageRegion
        ObscureMethod om;
        switch (currentRegion.obscureType) {
            case ImageRegion.BLUR:
                Log.v(LOGTAG,"obscureType: BLUR");
                om = new BlurObscure(obscuredBmp);
            break;

            case ImageRegion.ANON:
                Log.v(LOGTAG,"obscureType: ANON");
                om = new AnonObscure(this.getApplicationContext(), obscuredBmp, obscuredPaint);
                break;

from obscuracam.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.