PPaintContext Members

PPaintContext overview

Public Static Fields

CURRENT_PAINT_CONTEXT The current PPaintContext.

Public Instance Constructors

PPaintContext Constructor Constructs a new PPaintContext.

Public Instance Properties

Camera Gets the bottom-most camera on the camera stack (the last camera pushed).
Canvas Gets the canvas that this paint context renders on.
Graphics Gets the graphics context associated with this paint context.
LocalClip Gets the current local clip.
RenderQuality Sets the rendering hints for this paint context. The render quality is most often set by the rendering PCanvas. Use PCanvas.AnimatingRenderQuality and PCanvas.InteractingRenderQuality to set these values.
Scale Gets the scale value applied by the graphics context associated with this paint context.

Public Instance Methods

Equals (inherited from Object)Determines whether the specified Object is equal to the current Object.
GetHashCode (inherited from Object)Serves as a hash function for a particular type, suitable for use in hashing algorithms and data structures like a hash table.
GetType (inherited from Object)Gets the Type of the current instance.
PopCamera Pops a camera from the camera stack.
PopClip Pops a clip from both the clip stack and the local clip stack and sets the clip of the graphics context to the clip popped from the clip stack.
PopTransform Pops a matrix from the transform stack.
PushCamera Pushes the given camera onto the camera stack.
PushClip Pushes the current clip onto the clip stack and sets clip of the graphics context to the intersection of the current clip and the given clip.
PushTransform Pushes the given matrix onto the transform stack.
ToString (inherited from Object)Returns a String that represents the current Object.

Protected Instance Fields

cameraStack A stack of the cameras being painted.
clipStack A stack of the clip regions that the paint context applies. These regions are not affected by the matrices in the transform stack.
localClipStack A stack of rectangles representing the local clips. These values will be affected by the matrices in the transform stack.
transformStack A stack of the transforms that the paint context applies.

Protected Instance Methods

Finalize (inherited from Object)Allows an Object to attempt to free resources and perform other cleanup operations before the Object is reclaimed by garbage collection.
MemberwiseClone (inherited from Object)Creates a shallow copy of the current Object.

See Also

PPaintContext Class | UMD.HCIL.Piccolo.Util Namespace