Copyright©
Kambiz R. Khojasteh. All rights reserved.
Get future component updates from http://www.delphiarea.com.
Delphi
3 |
Delphi
4 |
Delphi
5 |
Delphi
6 |
DESCRIPTION
TRotateImage
is a component similar to TImage with ability to rotate the showing image
in an arbitrary angle.
KEY PROPERTIES
- Angle:
Extended
Determines the rotation angle in degrees.
- RotatedBitmap:
TBitmap (Read-only)
Contains the rotated copy of the image.
- UniqueSize:
Boolean
Determines the behavior of the
inherited AutoSize property. If set to true,
size of the control is determined by the maximum size of the image during
rotation. If set to false, size of the control will change according to the
selected rotation angle to exactly fit to the size of the rotated image.
KEY METHODS
- function
RotatedPoint(const Pt: TPoint): TPoint
Returns the transformed coordinate of a point on the original image according
to the current value of the rotation angle.
KEY EVENTS
No new event.
GLOBAL ROUTINES
- function
RotateBitmap(Bitmap: TBitmap; Angle: Double; Color: TColor): TBitmap
Returns a the rotated bitmap of the passed image as Bitmap parameter.
The rotation angle determines by the Angle parameter and functions
fills the empty area with the color that is specified by Color parameter.
The returned batman object should be freed by the caller.
HISTORY
- 1.24 (December
28, 2001)
- Now supports Delphi 6.
- 1.23 (May
7, 2001)
- Bug on transparency fixed.
- 1.22 (January
27, 2001)
- Method RotatedPoint added.
- A minor bug fixed.
- 1.21 (September
26, 2000)
- Component editor of the control improved to open the picture editor
by double clicking on the control at design time.
- 1.20 (June
29, 2000)
- A minor bug fixed.
- 1.10 (June
28, 2000)
- Property UniqueSize added.
- 1.00 (June
17, 2000)
- Initial release.
LICENSE
TRotateImage
component is freeware. You may copy component's files AS LONG AS YOU COPY
ALL OF THEM. If you want to change the source code in order to improve the
component's features, performance, etc. please send me the new source code
so that I can have a look at it. The changed source code should contain descriptions
what you have changed, and of course your name. The only thing you MAY NOT
CHANGE is the ORIGINAL COPYRIGHT INFORMATION.
DISCLAIMER
TRotateImage
is provided "AS IS" without any warranty of any kind, either express
or implied. The entire risk as to the quality and performance of the software
is with you. The author is NOT liable for any DAMAGES resulting from the use
and misuse of the component, especially he is NOT liable for DAMAGES that
were caused BY ANY VERSION WHICH HAS NOT BEEN PROGRAMMED BY THE AUTHOR HIMSELF.