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

Method makeRaster

shared/java/Surface.java:169–172  ·  view source on GitHub ↗

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)

Source from the content-addressed store, hash-verified

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.

Callers 7

baseMethod · 0.95
makeSubsetMethod · 0.95
executeMethod · 0.95
makeRasterN32PremulMethod · 0.95
drawSineMethod · 0.95
drawMethod · 0.95
SkiaVolatileImageMethod · 0.95

Calls 4

onNativeCallMethod · 0.95
_nMakeRasterMethod · 0.95
getPtrMethod · 0.95
reachabilityFenceMethod · 0.95

Tested by 3

baseMethod · 0.76
makeSubsetMethod · 0.76
executeMethod · 0.76