Cairo.capture is essentially the same as
dev.capture(native=TRUE) with the exception that it works where
dev.capture doesn't such as onSave callbacks. Cairo.snapshot is very similar to recordPlot except it
also allows to retrieve the last snapshot.
Cairo.capture(device = dev.cur())
Cairo.snapshot(device = dev.cur(), last=FALSE)Cairo (as
obtained from the Cairo function).FALSE then a new snapshot is created
(exactly the same as recordPlot()), if TRUE then the last
known snapshot is retrieved, if NA then a snapshot is created
first, but if the dispCairo.capture: object of the class nativeRaster. Cairo.snapshot: object of the class recordedplot.