Cylindrize Class

Applies a cylindrize transformation on an image.

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

Syntax

C#
public sealed class Cylindrize : IBitmapTransform, IDisposable

Remarks

This transformation is useful if you need to emulate the image to be bended on the cylinder surface, for example, mug. In this case the following sequence is used:

  1. Use Resize to fit the bitmap to cylinder parameters.
  2. Use Cylindrize to distort the bitmap.
  3. Combine distorted bitmap and mug image using Combiner class or Draw(Bitmap, Rectangle, CombineMode, Single, ResizeInterpolationMode) method.

You can specify a number of cylinder parameters: height (CylinderHeight property), half-perimeter (CylinderHalfPerimeter property), color (CupColor property). You can also specify position of the image relatively top left corner of the "face" part of cylinder (HorizontalOffset and VerticalOffset properties). If the cylinder (e.g. mug) is tilted, you can take it into account with SlopeAngle property. And of course like for any other geometry bitmap transform, you can specify interpolation algorithm (InterpolationMode property) and background color (BackgroundColor property).

Inheritance Hierarchy

System.Object
L Aurigma.GraphicsMill.Transforms.Cylindrize

Thread Safety

Static members of this type are not safe for multi-threaded operations. Instance members of this type are not safe for multi-threaded operations.

See Also

Reference