Copyright © Kambiz R. Khojasteh. All rights reserved.
Get future component updates from http://www.delphiarea.com.
DESCRIPTION
TAnimateImage is a windowed control for displaying images of a TImageList on a form. You need just to assign an ImageList component to its Images property and set the FrameIndex property to index of the image you want to display.
Additionally, TAnimateImage can use for animating images of a TImageList. If you have frames of an animation as Bitmap or Icon, this is the easiest way to animate them. For this purpose, TAnimateImage provides some properties to specify animation's interval, frames' segment, and direction of the animation.
KEY PROPERTIES
- Active: Boolean
Determines whether the animation is active.
- AutoSize: Boolean
Determines whether the size of the control automatically resizes to accommodate the image.
- Center: Boolean
Indicates whether the image is centered in the control.
- DoubleBuffered: Boolean
Determines whether the control's image is rendered directly to the window or painted to an in-memory bitmap first.
- FrameIndex: Integer
Specifies the index of the image displayed in the control.
- Interval: Integer
Determines the amount of time, in milliseconds, that passes before the control shows the next animation's frame.
- Images: TCustomImageList
Lists the images that can appear on the control.
- LoopCount: Integer (Read-only)
Specifies the number of times the active animation has completed a complete loop.
- NumLoops: Integer
Determines the mixmum number of times the animation can wraps.
- Reverse: Boolean
Indicates whether the animation is played backward when the animation is activated.
- StartFrame: Integer
Specifies the first frame displayed when the animation is activated.
- StopFrame: Integer
Specifies the last frame displayed when the animation is activated.
- Transparent: Boolean
Specifies whether the background of the image obscures objects below the control.
KEY METHODS
No new method.
KEY EVENTS
- OnFrame: TNotifyEvent
Occurs just after the new animation's frame is displayed.
- OnMouseEnter: TNotifyEvent
Occurs when the mouse pointer moves over the control.
- OnMouseLeave: TNotifyEvent
Occurs when the mouse pointer moves off from over the control.
- OnWrap: TNotifyEvent
Occurs when the animation finished one complete loop.
HISTORY
- Version 1.02 (November 18, 2008)
- Support for Delphi 2009 added.
- Version 1.01 (August 20, 2003)
- Added OnMouseEnter and OnMouseLeave events.
- Version 1.00 (August 20, 2003)
- Initial release.
LICENSE
TAnimateImage 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
TAnimateImage 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.