Allocates raster Surface. Canvas returned by Surface draws directly into pixels. Allocates and zeroes pixel memory. Pixel memory size is imageInfo.height() times imageInfo.minRowBytes(). Pixel memory is deleted when Surface is deleted. Surface is returned if all parameters are valid. Vali
(@NotNull ImageInfo imageInfo)
| 167 | * @return new Surface |
| 168 | */ |
| 169 | @NotNull @Contract("_, _, _ -> new") |
| 170 | public static Surface makeRaster(@NotNull ImageInfo imageInfo) { |
| 171 | return makeRaster(imageInfo, 0, null); |
| 172 | } |
| 173 | |
| 174 | /** |
| 175 | * <p>Allocates raster Surface. Canvas returned by Surface draws directly into pixels. |