Rotatable Image 2.0.1
By Mohammad Yousefi
www.dihav.com
vahid_you2004@yahoo.com
April 2013
- This component is freeware and can be distributed by everyone.
- No person or company may charge a fee for the distribution of this product.
- No warranty of any kind is expressed or implied. You use at your own risk. The author will not be liable for data loss, damages, loss of profits or any other kind of loss while using or misusing this component.
- You may not rent, lease, sell, modify, and decompile component. Any such unauthorized use shall result in immediate and automatic termination of this license and may result in criminal and/or civil prosecution.
Installing and using this component signifies acceptance of these terms and conditions of the license.
Top
This component is an image control.
You can display images with a custom degree of rotation.
You can also change image with a custom mapping function.
This component uses antialiasing to make images smooth when stretching, rotating, or mapping them.
It can also display and rotate 32bit with alpha-channel images.
This component is tested on "Delphi 7" and "Delphi XE2".
Top
- Run Delphi.
- Remove previous version of component, if installed.
- Create a new package or open an existing package.
- Add following files to the package:
- MCoPRotatableImage2.pas
- Icon.dcr
- Save, compile and install the package.
- Component will be appeared on "dihav" tab in "Component Palette".
- Add component files directory to "Library Path" accessible from "Tools>Environment Options...>Library" or "Tools>Options...>Environment Options>Delphi Options>Library - Win32".
Top
Top
- BlendColor : TColor
Determinates the color of transparent pixels.
It is better to use the same color as the image background.
- CustomMapping : Boolean
If this property is true the component uses a custom mapping to draw picture.
- RotationAngle : Real
The angle of rotated picture.
The other properties are the same as TImage.
Top
- procedure MakeCustomMapping;
Creates an image by using a custom mapping.
The other methods are the same as TImage.
Top
- OnCustomMapping : TMappingEvent
This event occurs to get the custom mapping data.
OnCustomMapping will only occur if the CustomMapping property is true.
The other events are the same as TImage.
Top
Visit dihav website.