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

Applies a cylindrize transformation on the bitmap using the specified settings.

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

Syntax

C#
public void Cylindrize(
	float slopeAngle,
	int cylinderHalfPerimeter,
	int cylinderHeight,
	int horizontalOffset,
	int verticalOffset,
	Color cupColor,
	Color backgroundColor,
	InterpolationMode mode
)

Parameters

slopeAngle

Type: System.Single

A slope angle of the cylinder.
cylinderHalfPerimeter

Type: System.Int32

A half-perimeter of the cylinder.
cylinderHeight

Type: System.Int32

The height of the cylinder.
horizontalOffset

Type: System.Int32

The horizontal offset of the bitmap on the cylinder.
verticalOffset

Type: System.Int32

The vertical offset of the bitmap on the cylinder.
cupColor

Type: Aurigma.GraphicsMill.Color

The cylinder color.
backgroundColor

Type: Aurigma.GraphicsMill.Color

mode

Type: Aurigma.GraphicsMill.Transforms.InterpolationMode

A InterpolationMode specifying interpolation algorithm used in the transform.

Remarks

This method is useful if you need to emulate the image to be bended on the cylinder surface, for example, mug.

See Also

Reference