toBufferedImage
Returns a copy of the recorded pixels at device resolution - the user-space size multiplied by the scale it was recorded at - untransformed and with no alpha or renderEffect applied.
The copy is the caller's: a later record or release does not touch it.
Throws
if this layer has no content.