Partilhar via


Compositor.CreateSurfaceBrush Método

Definição

Sobrecargas

CreateSurfaceBrush()

Cria uma instância de CompositionSurfaceBrush.

CreateSurfaceBrush(ICompositionSurface)

Cria uma instância de CompositionSurfaceBrush usando a superfície de composição especificada.

CreateSurfaceBrush()

Cria uma instância de CompositionSurfaceBrush.

public:
 virtual CompositionSurfaceBrush ^ CreateSurfaceBrush() = CreateSurfaceBrush;
/// [Windows.Foundation.Metadata.Overload("CreateSurfaceBrush")]
CompositionSurfaceBrush CreateSurfaceBrush();
[Windows.Foundation.Metadata.Overload("CreateSurfaceBrush")]
public CompositionSurfaceBrush CreateSurfaceBrush();
function createSurfaceBrush()
Public Function CreateSurfaceBrush () As CompositionSurfaceBrush

Retornos

Retorna o objeto CompositionSurfaceBrush criado.

Atributos

Exemplos

SpriteVisual visual= compositor.CreateSpriteVisual();

var surface = graphicsDevice.CreateDrawingSurface(new Size(300, 50), 
                       Windows.Graphics.DirectX.DirectXPixelFormat.B8G8R8A8UIntNormalized, 
                       CompositionAlphaMode.Ignore); 

var surfaceBrush = _compositor.CreateSurfaceBrush(surface);
surfaceBrush.HorizontalAlignmentRatio = 0.0;
surfaceBrush.VerticalAlignmentRatio= 0.0;
surfaceBrush.Stretch = CompositionStretch.None;

visual.Brush = surfaceBrush;

Confira também

Aplica-se a

CreateSurfaceBrush(ICompositionSurface)

Cria uma instância de CompositionSurfaceBrush usando a superfície de composição especificada.

public:
 virtual CompositionSurfaceBrush ^ CreateSurfaceBrush(ICompositionSurface ^ surface) = CreateSurfaceBrush;
/// [Windows.Foundation.Metadata.Overload("CreateSurfaceBrushWithSurface")]
CompositionSurfaceBrush CreateSurfaceBrush(ICompositionSurface const& surface);
[Windows.Foundation.Metadata.Overload("CreateSurfaceBrushWithSurface")]
public CompositionSurfaceBrush CreateSurfaceBrush(ICompositionSurface surface);
function createSurfaceBrush(surface)
Public Function CreateSurfaceBrush (surface As ICompositionSurface) As CompositionSurfaceBrush

Parâmetros

surface
ICompositionSurface

A superfície de composição a ser associada ao CompositionSurfaceBrush.

Retornos

Retorna o objeto CompositionSurfaceBrush criado.

Atributos

Confira também

Aplica-se a