PAGSurface Class Reference
| Inherits from | NSObject | 
|---|---|
| Declared in | PAGSurface.h | 
+ MakeFromGPU:
	Deprecated Creates an offscreen PAGSurface of the specified size for pixel reading.
+ (PAGSurface *)MakeFromGPU:(CGSize)sizeDeclared In
PAGSurface.h
+ MakeOffscreen:
	Creates an offscreen PAGSurface of the specified size for pixel reading.
+ (PAGSurface *)MakeOffscreen:(CGSize)sizeDeclared In
PAGSurface.h
– updateSize
	Update the size of the surface, and reset the internal surface.
- (void)updateSizeDeclared In
PAGSurface.h
– clearAll
	Erases all pixels of this surface with transparent color. Returns true if the content has changed.
- (BOOL)clearAllDeclared In
PAGSurface.h
– freeCache
	Free the cache created by the surface immediately. Can be called to reduce memory pressure.
- (void)freeCacheDeclared In
PAGSurface.h
– getCVPixelBuffer
	Returns the internal CVPixelBuffer object associated with this PAGSurface, returns nil if this PAGSurface is created by [PAGSurface FromLayer].
- (CVPixelBufferRef)getCVPixelBufferDeclared In
PAGSurface.h
– makeSnapshot
	Returns a CVPixelBuffer object capturing the contents of the PAGSurface. Subsequent rendering of the PAGSurface will not be captured.
- (CVPixelBufferRef)makeSnapshotDeclared In
PAGSurface.h