NShape Reference
TransformDrawCache Method

<< Click to Display Table of Contents >>

Navigation:  Class Reference > Namespace Dataweb.NShape.Advanced > ShapeBase Class >

NShape Reference
TransformDrawCache Method

Previous pageReturn to chapter overviewNext page

Translates and rotates the draw cache in a way to place the shape correctly on the drawing surface.

Syntax

protected abstract void TransformDrawCache(int deltaX, int deltaY, int deltaAngle, int rotationCenterX, int rotationCenterY)

Description

After the draw cache has been recalculated it must be transformed to put the shape in the correct position and the right angle before it can be drawn.

Parameters

Name

Description

deltaX

Horizontal displacement

deltaY

Vertical displacement

deltaAngle

Rotation angle

rotationCenterX

X coordinate of rotation center

rotationCenterY

Y coordinate of rotation center

See also

Concepts: Drawing a shape