Piccolo.NET

PNode.SetOffset Method 

Sets the offset applied to this node by it's matrix.

public virtual void SetOffset(
   float x,
   float y
);

Parameters

x
The x amount of the offset, specified in the parent coordinate system.
y
The y amount of the offset, specified in the parent coordinate system.

Remarks

The offset affects this node and all of its descendents and is specified in the parent coordinate system. This directly sets the values that are in the dx and dy positions of the matrix. Unlike PNode.TranslateBy(), this is not affected by the scale value of the matrix.

See Also

PNode Class | UMD.HCIL.Piccolo Namespace


Web Accessibility