ImageEn, unit iexTransitions |
|
TIETransitionParams.WordTransFontName
Declaration
property WordTransFontName: string;
Description
Specify the font that is used for text during a "Word" transition, e.g. "Arial" or "Wingdings".
Ensure you specify a font that is available on the destination system.
The following "Word" transition properties can be customized:
◼WordTransWord
◼TIETransitionParams.WordTransFontName
◼WordTransFontStyle
◼WordTransQuality
These apply to all
"Word" transition effects:
◼iettRandomBoxesWithWord
◼iettRandomWord *
◼iettExpandingWord *
◼iettWordWipeOut *
◼iettWordWipeIn *
◼iettWordWipeInAndOut *
◼iettWordHalfSweep
◼iettWordFullSweep
◼iettWordFullExpandingSweep
Note: Effects with an asterisk will cycle through each specified letter, displaying one at a time. If you wish to display a whole (only a short one is recommended) then enclose it in quotations, e.g. "HI!"
Other effects will always display the full word.
Default: 'Arial'
// Set properties for Word transition
ImageEnView1.TransitionParams.WordTransWord := 'BLAM';
ImageEnView1.TransitionParams.WordTransFontName := 'Arial';
ImageEnView1.TransitionParams.WordTransFontStyle := [fsBold];
// Prepare ImageEnView1 for a transition (e.g. so loading the image will not immediately update the display)
ImageEnView1.PrepareTransition();
// Load the next image
ImageEnView1.IO.LoadFromFile( GetNextImage() );
// Run the transition
ImageEnView1.RunTransition( iettRandomBoxesWithWord, 1000 );
// Display snowflakes in random positions
ImageEnView1.TransitionParams.WordTransWord := 'T'; // Snowflake in the Wingdings font
ImageEnView1.TransitionParams.WordTransFontName := 'Wingdings';
ImageEnView1.TransitionParams.WordTransFontStyle := [fsBold];
ImageEnView1.PrepareTransition();
ImageEnView1.IO.LoadFromFile( GetNextImage() );
ImageEnView1.RunTransition(iettRandomWord, 2000);
// Transition, showing each letter of the word "ImageEn" in turn
ImageEnView1.TransitionParams.Word := 'ImageEn';
ImageEnView1.PrepareTransition();
ImageEnView1.IO.LoadFromFile( GetNextImage() );
ImageEnView1.RunTransition(iettWordWipeInAndOut, 5000);
// Transition wiping the screen with the word "GO!"
ImageEnView1.TransitionParams.Word := '"GO!"'; // Enclose in quotes to avoid cyling. Small words are best
ImageEnView1.PrepareTransition();
ImageEnView1.IO.LoadFromFile(GetNextImage() );
ImageEnView1.RunTransition(iettWordWipeInAndOut, 5000);