Other Surfaces
Learn about the uses of surfaces that are not used to create output.
We'll cover the following...
We'll cover the following...
RecordingSurface
A recording surface records drawing operations, which can later be played back to a normal surface. Here is an example of this:
First, we create a RecordingSurface. This takes two parameters:
-
contentdefines the type of content we want to record. This is set by acairo.Contentvalue ofCOLOR,ALPHA, orCOLOR_ALPHA(to record color and alpha information) -
rectangledefines the area to record. Neither can be used to record all operations without bounds
Then, we then create a context and draw onto it in the usual ...