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

Cylindrize Class

This class enables you to apply cylindrize transform. Image will be looking like bended on cylinder.

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

Syntax

Visual Basic
Public NotInheritable Class Cylindrize _
	Inherits BitmapTransform
C#
public sealed class Cylindrize : BitmapTransform

Remarks

This class 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. Resize bitmap to fit it to cylinder parameters.
  2. Use Cylindrize transform to distort image.
  3. Combine distorted bitmap and mug image using Combiner class, Draw(Bitmap, Rectangle, Rectangle, CombineMode, Single, InterpolationMode) method, or any other way.

You can specify a number of cylinder parameters - height (CylinderHeight property), half-perimeter (CylinderHalfPerimeter property), color (CylinderColor property). You also can 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).

All the coordinates and sizes are measured in units specified with Unit property.

Inheritance Hierarchy

Thread Safety

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

Supported Pixel Formats

Member NameDescription
Format8bppGrayScale8 bits per pixel. Grayscale. 8 bits are used for luminosity level.
Format16bppGrayScale16 bits per pixel. Grayscale. All 16 bits are used for luminosity level (extended pixel format).
Format16bppAGrayScale16 bits per pixel. Grayscale with alpha channel. 8 bits are used for alpha channel and other 8 bits are used for luminosity level.
Format32bppAGrayScale32 bits per pixel. Grayscale with alpha channel. 16 bits are used for alpha channel and other 16 bits are used for luminosity level (extended pixel format).
Format24bppRgb24 bits per pixel. RGB. 8 bits each are used for the red, green, and blue components.
Format32bppRgb32 bits per pixel. RGB. 8 bits each are used for the red, green, and blue components. The rest 8 bits are unused.
Format32bppArgb32 bits per pixel. RGB with alpha channel. 8 bits each are used for the alpha, red, green, and blue components.
Format48bppRgb48 bits per pixel. RGB. 16 bits each are used for the red, green, and blue components (extended pixel format).
Format64bppArgb64 bits per pixel. RGB with alpha channel. 16 bits each are used for the alpha, red, green, and blue components (extended pixel format).
Format32bppCmyk32 bits per pixel. CMYK. 8 bits each are used for the cyan, magenta, yellow, and black components.
Format64bppCmyk64 bits per pixel. CMYK. 16 bits each are used for the cyan, magenta, yellow, and black components (extended pixel format).
Format80bppAcmyk80 bits per pixel. CMYK with alpha channel. 16 bits each are used for the alpha, cyan, magenta, yellow, and black components (extended pixel format).

See Also

Reference