C# Class Mapsui.Rendering.OpenTK.TextureHelper

Mostra file Open project: pauldendulk/Mapsui Class Usage Examples

Public Methods

Method Description
LoadTexture ( Stream textureData ) : Mapsui.Rendering.OpenTK.TextureInfo
RenderTexture ( Mapsui.Rendering.OpenTK.TextureInfo textureInfo, float x, float y, float orientation, float offsetX, float offsetY, LabelStyle horizontalAlignment = LabelStyle.HorizontalAlignmentEnum.Center, LabelStyle verticalAlignment = LabelStyle.VerticalAlignmentEnum.Center, float opacity = 1f, float scale = 1f ) : void
RenderTexture ( int textureId, float vertextArray ) : void
RenderTextureWithoutBinding ( int textureId, float vertextArray, float opacity = 1f ) : void

Private Methods

Method Description
DetermineHorizontalAlignmentCorrection ( LabelStyle horizontalAlignment, int width ) : int
DetermineVerticalAlignmentCorrection ( LabelStyle verticalAlignment, int height ) : int
SetParameters ( ) : void

Method Details

LoadTexture() public static method

public static LoadTexture ( Stream textureData ) : Mapsui.Rendering.OpenTK.TextureInfo
textureData System.IO.Stream
return Mapsui.Rendering.OpenTK.TextureInfo

RenderTexture() public static method

public static RenderTexture ( Mapsui.Rendering.OpenTK.TextureInfo textureInfo, float x, float y, float orientation, float offsetX, float offsetY, LabelStyle horizontalAlignment = LabelStyle.HorizontalAlignmentEnum.Center, LabelStyle verticalAlignment = LabelStyle.VerticalAlignmentEnum.Center, float opacity = 1f, float scale = 1f ) : void
textureInfo Mapsui.Rendering.OpenTK.TextureInfo
x float
y float
orientation float
offsetX float
offsetY float
horizontalAlignment Mapsui.Styles.LabelStyle
verticalAlignment Mapsui.Styles.LabelStyle
opacity float
scale float
return void

RenderTexture() public static method

public static RenderTexture ( int textureId, float vertextArray ) : void
textureId int
vertextArray float
return void

RenderTextureWithoutBinding() public static method

public static RenderTextureWithoutBinding ( int textureId, float vertextArray, float opacity = 1f ) : void
textureId int
vertextArray float
opacity float
return void