This documentation is for the old version. Go to the latest Graphics Mill docs

TransformsProvider.Cylindrize Method (Single, Single, Single, Single, Single, Color, Color, InterpolationMode)

Applies cylindrize transform (image is looking like bended on mug or any other cylindric surface).

Namespace: Aurigma.GraphicsMill
Assembly: Aurigma.GraphicsMill (in Aurigma.GraphicsMill.dll)

Syntax

Visual Basic
Public Sub Cylindrize ( _
	slopeAngle As Single, _
	cylinderHalfPerimeter As Single, _
	cylinderHeight As Single, _
	horizontalOffset As Single, _
	verticalOffset As Single, _
	cylinderColor As Color, _
	backgroundColor As Color, _
	interpolationMode As InterpolationMode _
)
C#
public void Cylindrize(
	float slopeAngle,
	float cylinderHalfPerimeter,
	float cylinderHeight,
	float horizontalOffset,
	float verticalOffset,
	Color cylinderColor,
	Color backgroundColor,
	InterpolationMode interpolationMode
)

Parameters

slopeAngle

Type: System.Single

Slope angle of the cylinder.
cylinderHalfPerimeter

Type: System.Single

Positive number specifying half-perimeter of the cylinder. You can also specify -1. In this case width of the bitmap will be taken.
cylinderHeight

Type: System.Single

Positive number specifying height of the cylinder. You can also specify -1. In this case height of the bitmap will be taken.
horizontalOffset

Type: System.Single

Horizontal offset of the bitmap on the cylinder.
verticalOffset

Type: System.Single

Vertical offset of the bitmap on the cylinder.
cylinderColor

Type: Aurigma.GraphicsMill.Color

Cylinder color value.
backgroundColor

Type: Aurigma.GraphicsMill.Color

Background color value.
interpolationMode

Type: Aurigma.GraphicsMill.Transforms.InterpolationMode

InterpolationMode value specifying interpolation algorithm used in the transform.

Remarks

You can also use Cylindrize class to apply this transform.

See Also

Reference