TRotateImage for Delphi 3, 4, and 5
-----------------------------------

Autor: Kambiz R. Khojasteh
E-mail: khojasteh@mail.com
Web: http://www.crosswinds.net/~khojasteh/


D E S C R I P T I O N
---------------------

TRotateImage is a visual component similar to TImage control. In addition to TImage
abilities, this component can rotate the image across the center of the image and in 
any arbitrary angle.
    

K E Y  P R O P E R T I E S
--------------------------

* Angle: Extended;
  Determines the angle of rotation in degrees.

* RotatedBitmap: TBitmap; (Read-only)
  This is the rotated bitmap.

* UniqueSize: Boolean;
  This property is depended to AutoSize. When AutoSize property is true,
  true value of this property causes size of the control set to maximum
  size of the image independent of rotation angle. Otherwise, size of the
  control will change by changing the rotation angle.


K E Y  M E T H O D
------------------

* function RotatedPoint(P: TPoint): TPoint;
  Returns the rotated coordinate of a point in the original image according to
  current value of Angle property.


G L O B A L   F U N C T I O N
-----------------------------

* function RotateBitmap(Bitmap: TBitmap; Angle: Double; Color: TColor): TBitmap;

  This function creates a rotated bitmap of the bitmap parameter. 

  Parameters:

    Bitmap: TBitmap - The input bitmap;
    Angle: Double - Amount of rotation in degrees
    Color: TColor - Background color of the rotated bitmap

  Return value:

    This function returns rotated bitmap of the original bitmap. The result bitmap 
    must be freed.


H I S T O R Y
-------------

* Version 1.22 - January 27, 2001
  - A minor bug fixed.
  - RotatedPoint method added.

* Version 1.21 - September 26, 2000
  - Component editor modified so that double click on the control 
    displays the picture editor. 

* Version 1.2 - June 29, 2000
  - A minor bug fixed.

* Version 1.1 - June 28, 2000
  - New property UniqueSize added to the control.

* Version 1.0 - June 17, 2000
  - Initial release


D I S C L A I M E R
-------------------

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. 
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.


If you have any problems, suggestions, or bug reports please feel free to contact me.

Good luck!
Kambiz
