C# Class ExampleGallery.BurningTextExample

Inheritance: Windows.UI.Xaml.Controls.UserControl
Afficher le fichier Open project: clarkezone/BUILD2015-Talk-2-672 Class Usage Examples

Méthodes publiques

Méthode Description
CreateResources ( ) : void
Draw ( Microsoft.Graphics.Canvas.CanvasDrawingSession ds, Size sizeRender, float totalTimeSeconds ) : void

Private Methods

Méthode Description
ConfigureEffect ( float totalTimeSeconds ) : void
CreateFlameEffect ( ) : void

Generate the flame effect graph. This method is called before the text command list (input) is created.

GetFontSize ( Size displaySize ) : float

Calculates a good font size so the text will fit even on smaller phone screens.

SetupText ( ICanvasResourceCreator resourceCreator ) : void

Renders text into a command list and sets this as the input to the flame effect graph. The effect graph must already be created before calling this method.

Method Details

CreateResources() public méthode

public CreateResources ( ) : void
Résultat void

Draw() public méthode

public Draw ( Microsoft.Graphics.Canvas.CanvasDrawingSession ds, Size sizeRender, float totalTimeSeconds ) : void
ds Microsoft.Graphics.Canvas.CanvasDrawingSession
sizeRender Windows.Foundation.Size
totalTimeSeconds float
Résultat void