Best code examples for Android Effect class (android.media.effect.Effect)

These code examples were ranked by Codota’s semantic indexing as the best open source examples for Android Effect class.
You can now enable Codota on your own code to easily search and navigate your Java codebase.

Android Effect examples from Open Source projects
This code example shows how to use the following methods: apply, setParameter
124:	mMinMaxEffect.setParameter("black", .1f); 
125:	mMinMaxEffect.setParameter("white", .8f); 
-
129:	mMinMaxEffect.apply(mTextures[0], mImageWidth, mImageHeight, mTextures[0]); 
Full Snippet Info
8
CodeRank
This code example shows how to use the following methods: apply, setParameter
49:	effect.setParameter("xorigin", Math.round(bounds.left * src.width())); 
50:	effect.setParameter("yorigin", Math.round(bounds.top * src.height())); 
51:	effect.setParameter("width", dst.width()); 
52:	effect.setParameter("height", dst.height()); 
53:	effect.apply(src.texture(), src.width(), src.height(), dst.texture()); 
Full Snippet Info
7
CodeRank
This code example shows how to use the following methods: apply, setParameter
43:	effect.setParameter("horizontal", flips[0]); 
44:	effect.setParameter("vertical", flips[1]); 
45:	effect.apply(src.texture(), src.width(), src.height(), dst.texture()); 
Full Snippet Info
6
CodeRank
This code example shows how to use the following methods: apply, setParameter
43:	effect.setParameter("maxAngle", MAX_DEGREES); 
44:	effect.setParameter("angle", -degrees); 
45:	effect.apply(src.texture(), src.width(), src.height(), dst.texture()); 
Full Snippet Info
6
CodeRank
This code example shows how to use the following methods: apply, setParameter
44:	effect.setParameter("first_color", firstColor); 
45:	effect.setParameter("second_color", secondColor); 
46:	effect.apply(src.texture(), src.width(), src.height(), dst.texture()); 
Full Snippet Info
6
CodeRank
This code example shows how to use the following methods: apply, setParameter
49:	effect.setParameter("xorigin", Math.round(bounds.left * src.width())); 
50:	effect.setParameter("yorigin", Math.round(bounds.top * src.height())); 
51:	effect.setParameter("width", dst.width()); 
52:	effect.setParameter("height", dst.height()); 
53:	effect.apply(src.texture(), src.width(), src.height(), dst.texture()); 
Full Snippet Info
6
CodeRank
This code example shows how to use the following methods: apply, setParameter
42:	effect.setParameter("tint", color); 
43:	effect.apply(src.texture(), src.width(), src.height(), dst.texture()); 
Full Snippet Info
5
CodeRank
This code example shows how to use the following methods: apply, setParameter
45:	effect.setParameter("angle", (int) degrees); 
46:	effect.apply(src.texture(), src.width(), src.height(), dst.texture()); 
Full Snippet Info
6
CodeRank
This code example shows how to use the following methods: apply, setParameter
46:	effect.setParameter("blend", scale); 
47:	effect.apply(src.texture(), src.width(), src.height(), dst.texture()); 
Full Snippet Info
5
CodeRank
This code example shows how to use the following methods: apply, setParameter
47:	effect.setParameter("black", black); 
48:	effect.setParameter("white", 1f); 
49:	effect.apply(src.texture(), src.width(), src.height(), dst.texture()); 
Full Snippet Info
5
CodeRank
This code example shows how to use the following methods: apply, setParameter
47:	effect.setParameter("black", 0f); 
48:	effect.setParameter("white", white); 
49:	effect.apply(src.texture(), src.width(), src.height(), dst.texture()); 
Full Snippet Info
5
CodeRank
This code example shows how to use the following methods: apply, setParameter
44:	effect.setParameter("first_color", firstColor); 
45:	effect.setParameter("second_color", secondColor); 
46:	effect.apply(src.texture(), src.width(), src.height(), dst.texture()); 
Full Snippet Info
5
CodeRank
This code example shows how to use the following methods: apply, setParameter
44:	effect.setParameter("horizontal", flipHorizontal); 
45:	effect.setParameter("vertical", flipVertical); 
46:	effect.apply(src.texture(), src.width(), src.height(), dst.texture()); 
Full Snippet Info
5
CodeRank
This code example shows how to use the following methods: apply, setParameter
44:	effect.setParameter("maxAngle", MAX_DEGREES); 
45:	effect.setParameter("angle", angle); 
46:	effect.apply(src.texture(), src.width(), src.height(), dst.texture()); 
Full Snippet Info
5
CodeRank
This code example shows how to use the following methods: apply, setParameter
47:	effect.setParameter("strength", backlight); 
48:	effect.apply(src.texture(), src.width(), src.height(), dst.texture()); 
Full Snippet Info
5
CodeRank
This code example shows how to use the following methods: apply, setParameter
45:	effect.setParameter("angle", (int) degrees); 
46:	effect.apply(src.texture(), src.width(), src.height(), dst.texture()); 
Full Snippet Info
5
CodeRank
This code example shows how to use the following methods: apply, setParameter
47:	effect.setParameter("strength", scale); 
48:	effect.apply(src.texture(), src.width(), src.height(), dst.texture()); 
Full Snippet Info
5
CodeRank
This code example shows how to use the following methods: apply, setParameter
47:	effect.setParameter("scale", scale); 
48:	effect.apply(src.texture(), src.width(), src.height(), dst.texture()); 
Full Snippet Info
5
CodeRank
This code example shows how to use the following methods: apply, setParameter
42:	effect.setParameter("tint", tint); 
43:	effect.apply(src.texture(), src.width(), src.height(), dst.texture()); 
Full Snippet Info
5
CodeRank
This code example shows how to use the following methods: apply, setParameter
47:	effect.setParameter("scale", scale); 
48:	effect.apply(src.texture(), src.width(), src.height(), dst.texture()); 
Full Snippet Info
5
CodeRank
This code example shows how to use the following methods: apply, setParameter
47:	effect.setParameter("scale", scale); 
48:	effect.apply(src.texture(), src.width(), src.height(), dst.texture()); 
Full Snippet Info
5
CodeRank
This code example shows how to use the following methods: apply, setParameter
47:	effect.setParameter("scale", scale); 
48:	effect.apply(src.texture(), src.width(), src.height(), dst.texture()); 
Full Snippet Info
5
CodeRank
This code example shows how to use the following methods: apply, setParameter
47:	effect.setParameter("scale", scale); 
48:	effect.apply(src.texture(), src.width(), src.height(), dst.texture()); 
Full Snippet Info
5
CodeRank
This code example shows how to use the following methods: apply, setParameter
47:	effect.setParameter("scale", scale); 
48:	effect.apply(src.texture(), src.width(), src.height(), dst.texture()); 
Full Snippet Info
4
CodeRank
This code example shows how to use the following methods: apply
154:	mIdentityEffect.apply(inputTexId, width, height, outputTexId); 
Full Snippet Info
3
CodeRank
This code example shows how to use the following methods: setParameter
71:	effect.setParameter("tile_size", DEFAULT_TILE_SIZE); 
Full Snippet Info
4
CodeRank
This code example shows how to use the following methods: setParameter
71:	effect.setParameter("tile_size", DEFAULT_TILE_SIZE); 
Full Snippet Info
4
CodeRank
This code example shows how to use the following methods: setParameter
72:	effect.setParameter("tile_size", DEFAULT_TILE_SIZE); 
Full Snippet Info
4
CodeRank
See Code Examples for Android Effect Methods: