MCPcopy Create free account
hub / github.com/HumbleUI/Skija / makeFromICCProfile

Method makeFromICCProfile

shared/java/ColorSpace.java:336–341  ·  view source on GitHub ↗

Create a ColorSpace from ICC profile bytes. @param bytes ICC profile data @return ColorSpace instance, or null if the profile could not be parsed

(byte[] bytes)

Source from the content-addressed store, hash-verified

334 * @return ColorSpace instance, or null if the profile could not be parsed
335 */
336 @Nullable
337 public static ColorSpace makeFromICCProfile(byte[] bytes) {
338 Stats.onNativeCall();
339 long ptr = _nMakeFromICCProfile(bytes);
340 return ptr == 0 ? null : new ColorSpace(ptr);
341 }
342
343 @ApiStatus.Internal
344 public static class _FinalizerHolder {

Callers 1

testICCMethod · 0.95

Calls 2

onNativeCallMethod · 0.95
_nMakeFromICCProfileMethod · 0.95

Tested by 1

testICCMethod · 0.76