Visual Basic (Declaration) | |
---|---|
Public Class RotateCommandBitmapEffect Inherits RasterCommandBitmapEffect |
Visual Basic (Usage) | Copy Code |
---|---|
|
C# | |
---|---|
public class RotateCommandBitmapEffect : RasterCommandBitmapEffect |
Managed Extensions for C++ | |
---|---|
public __gc class RotateCommandBitmapEffect : public RasterCommandBitmapEffect |
C++/CLI | |
---|---|
public ref class RotateCommandBitmapEffect : public RasterCommandBitmapEffect |
This command has the following features:
It uses the center of the image as the center of rotation. It can rotate the image clockwise or counterclockwise up to 360 degrees in 1-degree increments. It can resize the image to accommodate the rotated height and width, or it can retain the original height and width, cropping the image as necessary. It uses FillColor as the background color to fill any new area created by the rotation.
RotateCommandBitmapEffectsFlags.Resample and RotateCommandBitmapEffectsFlags.Bicubic can be combined with RotateCommandBitmapEffectsFlags.Resize, but they can not be combined with each other.
If RotateCommandBitmapEffectsFlags.Resize is set, then the image is resized. Otherwise, the image is cropped.
Interpolation can be done while rotating certain images. This produces superior output, eliminating the jaggedness occurring when rotating images at angles that are not multiple of 90. (ie when RotateCommandBitmapEffect.Angle is not a multiple of 9000).
Leadtools.Windows.Media.Effects.RasterCommandBitmapEffect
Leadtools.Windows.Media.Effects.RotateCommandBitmapEffect
Target Platforms: Microsoft .NET Framework 2.0, Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family