ImageEn, unit iexTransitions |
|
TIETransitionParams.WordTransFontStyle
Declaration
property WordTransFontStyle: TFontStyles;
Description
Specify the style of the text displayed during a "Word" transition, which can include fsBold, fsItalic, fsUnderline and/or fsStrikeOut.
The following "Word" transition properties can be customized:
◼WordTransWord◼WordTransFontName◼TIETransitionParams.WordTransFontStyle◼WordTransQualityThese 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: [fsBold]
// 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);