C# Class ExampleGallery.BurningTextExample

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

Public Methods

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

Private Methods

Method 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 method

public CreateResources ( ) : void
return void

Draw() public method

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