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)
| 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 { |