Szerkesztés

Megosztás a következőn keresztül:


Texture2DExtensions Class

Definition

A collection of helper functions for Texture2D

public ref class Texture2DExtensions abstract sealed
public static class Texture2DExtensions
type Texture2DExtensions = class
Public Module Texture2DExtensions
Inheritance
Texture2DExtensions

Methods

CaptureScreenRegion(Int32, Int32, Int32, Int32)

Captures a region of the screen and returns it as a texture.

CreateTextureFromRegion(Texture2D, Int32, Int32, Int32, Int32)

Creates a texture from a defined region.

FillPixels(Texture2D, Color)

Fills the texture with a single color.

FillPixels(Texture2D, Int32, Int32, Int32, Int32, Color)

Fills the pixels. You will need to call Apply on the texture in order for changes to take place.

Applies to