Piccolo.NET

PUtil Methods

The methods of the PUtil class are listed below. For a complete list of PUtil class members, see the PUtil Members topic.

Public Static Methods

AddFrameworkSurrogate Adds a surrogate to the framework surrogate selector.
AddPointToRect Expands the given rectangle to include the given point.
AddRectToRect Returns the union of the two rectangles. If one rectangle is empty and one is not, the non-empty rectangle will be returned.
Brighter Lightens the given color by an amount specified by the scaleFactor.
CenterOfRectangle Returns the center of the given rectangle.
CreateBasicScenegraph Creates a basic scene graph.
Darker Darkens the given color by an amount specified by the scaleFactor.
DeltaRequiredToCenter Return the delta required to center the rectangle b2 in the rectangle b1.
DeltaRequiredToContain Return the delta required for the rectangle b1 to contain the rectangle b2.
DistanceBetweenPoints Returns the geometric distance between the two given points.
InflatedRectangle Gets a rectangle centered on the given point and inflated in the x and y directions by the given amounts.
PathIntersectsRect Returns true if the interior of the given path intersects the given rectangle.
ReadBrush Read in a Brush from the given SerializationInfo.
ReadPen Read in a Pen from the given SerializationInfo.
RectangleOutCode Returns the orientation with which the given point lies outside of the given rectangle.
RectIntersectsPerpLine Return true if the given rectangle intersects the given line, which must have either a slope of 0 or 90 degrees.
WriteBrush Write this Brush to the given SerializationInfo.
WritePen Write this Pen to the given SerializationInfo.

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.
ToString (inherited from Object)Returns a String that represents the current Object.

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

PUtil Class | UMD.HCIL.Piccolo.Util Namespace