(byte[] bytes)
| 238 | } |
| 239 | |
| 240 | @NotNull @Contract("_ -> new") |
| 241 | public static Image makeDeferredFromEncodedBytes(byte[] bytes) { |
| 242 | Stats.onNativeCall(); |
| 243 | long ptr = _nMakeDeferredFromEncodedBytes(bytes); |
| 244 | if (ptr == 0) |
| 245 | throw new IllegalArgumentException("Failed to Image::makeFromEncoded"); |
| 246 | return new Image(ptr); |
| 247 | } |
| 248 | |
| 249 | /** |
| 250 | * Returns a ImageInfo describing the width, height, color type, alpha type, and color space |
no test coverage detected