C# Class Cornerstone.MP.ImageSwapper

This class takes two GUIImage objects so that you can treat them as one. When you assign a new image to this object using the Filename property, the currently active image is hidden and the second is made visibile (with the new image file displayed). This allows for animations on image change, such as a fading transition. This class also uses the AsyncImageResource class for asynchronus image loading, dramtically improving GUI performance. It also takes advantage of the Delay feature of the AsyncImageResource to prevent unnecessary loads when rapid image changes are made.
Show file Open project: damienhaynes/moving-pictures Class Usage Examples

Public Methods

Method Description
ImageSwapper ( ) : System

Private Methods

Method Description
imageResource_ImageLoadingComplete ( AsyncImageResource image ) : void

Method Details

ImageSwapper() public method

public ImageSwapper ( ) : System
return System