Adds a MutableSurface#modify method to manipulate a mutable surface as a surface view.
While this might not be particularly interesting for pure Minart apps (that can rely on RamSurface), it's pretty helpful for interop with other libraries. For example, if a JS library uses ImageData, that could be modified with ImageDataSurface(imageData).modify(doStuffHere).
Adds a
MutableSurface#modify
method to manipulate a mutable surface as a surface view.While this might not be particularly interesting for pure Minart apps (that can rely on
RamSurface
), it's pretty helpful for interop with other libraries. For example, if a JS library usesImageData
, that could be modified withImageDataSurface(imageData).modify(doStuffHere)
.