MCPcopy Create free account
hub / github.com/KAlO2/PerfectShow / colorToAlpha

Method colorToAlpha

src/com/cloudream/ishow/algorithm/Effect.java:258–266  ·  view source on GitHub ↗
(int color, final Bitmap bitmap)

Source from the content-addressed store, hash-verified

256 }
257
258 public static Bitmap colorToAlpha(int color, final Bitmap bitmap)
259 {
260 if(bitmap == null)
261 return null;
262
263 Bitmap result = bitmap.copy(Bitmap.Config.ARGB_8888, true);
264 nativeColorToAlpha(color, bitmap, result);
265 return result;
266 }
267
268 public static Bitmap selectContiguousRegionByColor(Bitmap image, int color, SelectCriterion criterion,
269 float threshold, boolean antialias, boolean select_transparent)

Callers

nothing calls this directly

Calls 1

nativeColorToAlphaMethod · 0.95

Tested by

no test coverage detected