C# 클래스 NativeUI.Sprite

파일 보기 프로젝트 열기: Guad/NativeUI 1 사용 예제들

공개 프로퍼티들

프로퍼티 타입 설명
Color Color
Heading float
Position Point
Size Size
TextureName string
Visible bool

공개 메소드들

메소드 설명
Draw ( ) : void

Draws the sprite on a 1080-pixels height base.

DrawTexture ( string path, Point position, Size size ) : void

Draw a custom texture from a file on a 1080-pixels height base.

DrawTexture ( string path, Point position, Size size, float rotation, Color color ) : void

Draw a custom texture from a file on a 1080-pixels height base.

Sprite ( string textureDict, string textureName, Point position, Size size ) : System

Creates a game sprite object from a texture dictionary and texture name.

Sprite ( string textureDict, string textureName, Point position, Size size, float heading, Color color ) : System

Creates a game sprite object from a texture dictionary and texture name.

WriteFileFromResources ( Assembly yourAssembly, string fullResourceName ) : string

Save an embedded resource to a temporary file.

WriteFileFromResources ( Assembly yourAssembly, string fullResourceName, string savePath ) : string

Save an embedded resource to a concrete path.

메소드 상세

Draw() 공개 메소드

Draws the sprite on a 1080-pixels height base.
public Draw ( ) : void
리턴 void

DrawTexture() 공개 정적인 메소드

Draw a custom texture from a file on a 1080-pixels height base.
public static DrawTexture ( string path, Point position, Size size ) : void
path string Path to texture file.
position Point
size System.Drawing.Size
리턴 void

DrawTexture() 공개 정적인 메소드

Draw a custom texture from a file on a 1080-pixels height base.
public static DrawTexture ( string path, Point position, Size size, float rotation, Color color ) : void
path string Path to texture file.
position Point
size Size
rotation float
color Color
리턴 void

Sprite() 공개 메소드

Creates a game sprite object from a texture dictionary and texture name.
public Sprite ( string textureDict, string textureName, Point position, Size size ) : System
textureDict string
textureName string
position Point
size Size
리턴 System

Sprite() 공개 메소드

Creates a game sprite object from a texture dictionary and texture name.
public Sprite ( string textureDict, string textureName, Point position, Size size, float heading, Color color ) : System
textureDict string
textureName string
position Point
size Size
heading float
color Color
리턴 System

WriteFileFromResources() 공개 정적인 메소드

Save an embedded resource to a temporary file.
public static WriteFileFromResources ( Assembly yourAssembly, string fullResourceName ) : string
yourAssembly Assembly Your executing assembly.
fullResourceName string Resource name including your solution name. E.G MyMenuMod.banner.png
리턴 string

WriteFileFromResources() 공개 정적인 메소드

Save an embedded resource to a concrete path.
public static WriteFileFromResources ( Assembly yourAssembly, string fullResourceName, string savePath ) : string
yourAssembly Assembly Your executing assembly.
fullResourceName string Resource name including your solution name. E.G MyMenuMod.banner.png
savePath string Path to where save the file, including the filename.
리턴 string

프로퍼티 상세

Color 공개적으로 프로퍼티

public Color Color
리턴 Color

Heading 공개적으로 프로퍼티

public float Heading
리턴 float

Position 공개적으로 프로퍼티

public Point Position
리턴 Point

Size 공개적으로 프로퍼티

public Size Size
리턴 Size

TextureName 공개적으로 프로퍼티

public string TextureName
리턴 string

Visible 공개적으로 프로퍼티

public bool Visible
리턴 bool