C# 클래스 ExampleGallery.BurningTextExample

상속: Windows.UI.Xaml.Controls.UserControl
파일 보기 프로젝트 열기: clarkezone/BUILD2015-Talk-2-672 1 사용 예제들

공개 메소드들

메소드 설명
CreateResources ( ) : void
Draw ( Microsoft.Graphics.Canvas.CanvasDrawingSession ds, Size sizeRender, float totalTimeSeconds ) : void

비공개 메소드들

메소드 설명
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.

메소드 상세

CreateResources() 공개 메소드

public CreateResources ( ) : void
리턴 void

Draw() 공개 메소드

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