This class enables you to rotate the bitmap on arbitrary angle.
Namespace:
Aurigma.GraphicsMill.Transforms
Assembly:
Aurigma.GraphicsMill (in Aurigma.GraphicsMill.dll)
Public NotInheritable Class Rotate _ Inherits BitmapTransform
public sealed class Rotate : BitmapTransform
Main parameter of this transform is an Angle specifying how much degrees to rotate the image on. You can also select interpolation algorithm with InterpolationMode property. It specifies how to calculate intermediate points. Different algorithms produces different quality, but as usual the higher quality it produces, the slower algorithm works.
If you need to rotate on 90, 180, or 270 degrees, you should consider using RotateAndFlip transform instead of this one as it works noticeable faster.
'Rotate at 5 degrees with medium quality Dim rotate As New Aurigma.GraphicsMill.Transforms.Rotate rotate.Angle = 5 rotate.BackgroundColor = Aurigma.GraphicsMill.RgbColor.Yellow rotate.InterpolationMode = Aurigma.GraphicsMill.Transforms.InterpolationMode.MediumQuality rotate.ApplyTransform(bitmap)
//Rotate at 5 degrees with medium quality Aurigma.GraphicsMill.Transforms.Rotate rotate = new Aurigma.GraphicsMill.Transforms.Rotate(); rotate.Angle = 5; rotate.BackgroundColor = Aurigma.GraphicsMill.RgbColor.Yellow; rotate.InterpolationMode = Aurigma.GraphicsMill.Transforms.InterpolationMode.MediumQuality; rotate.ApplyTransform(bitmap);
Member Name | Description |
---|---|
Format8bppGrayScale | 8 bits per pixel. Grayscale. 8 bits are used for luminosity level. |
Format16bppGrayScale | 16 bits per pixel. Grayscale. All 16 bits are used for luminosity level (extended pixel format). |
Format16bppAGrayScale | 16 bits per pixel. Grayscale with alpha channel. 8 bits are used for alpha channel and other 8 bits are used for luminosity level. |
Format32bppAGrayScale | 32 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). |
Format24bppRgb | 24 bits per pixel. RGB. 8 bits each are used for the red, green, and blue components. |
Format32bppRgb | 32 bits per pixel. RGB. 8 bits each are used for the red, green, and blue components. The rest 8 bits are unused. |
Format32bppArgb | 32 bits per pixel. RGB with alpha channel. 8 bits each are used for the alpha, red, green, and blue components. |
Format48bppRgb | 48 bits per pixel. RGB. 16 bits each are used for the red, green, and blue components (extended pixel format). |
Format64bppArgb | 64 bits per pixel. RGB with alpha channel. 16 bits each are used for the alpha, red, green, and blue components (extended pixel format). |
Format32bppCmyk | 32 bits per pixel. CMYK. 8 bits each are used for the cyan, magenta, yellow, and black components. |
Format64bppCmyk | 64 bits per pixel. CMYK. 16 bits each are used for the cyan, magenta, yellow, and black components (extended pixel format). |
Format80bppAcmyk | 80 bits per pixel. CMYK with alpha channel. 16 bits each are used for the alpha, cyan, magenta, yellow, and black components (extended pixel format). |