C# 클래스 SkiaCaptcha.SkiaHelpers

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

공개 메소드들

메소드 설명
ArgbToFloatTuple ( int argb ) : System.Tuple
ArgbToIntTuple ( int argb ) : System.Tuple
DrawText ( SKCanvas canvas, string text, SKColor color, string fontName, float fontSize, SKTypefaceStyle fontStyle ) : void
MeasureText ( string text, string fontName, float fontSize, SKTypefaceStyle fontStyle ) : SKRect
SkToArgb ( SKColor col ) : int
SkToArgb ( int a, int r, int g, int b ) : int

비공개 메소드들

메소드 설명
MeasureText ( string text, SKPaint paint ) : SKRect

메소드 상세

ArgbToFloatTuple() 공개 정적인 메소드

public static ArgbToFloatTuple ( int argb ) : System.Tuple
argb int
리턴 System.Tuple

ArgbToIntTuple() 공개 정적인 메소드

public static ArgbToIntTuple ( int argb ) : System.Tuple
argb int
리턴 System.Tuple

DrawText() 공개 정적인 메소드

public static DrawText ( SKCanvas canvas, string text, SKColor color, string fontName, float fontSize, SKTypefaceStyle fontStyle ) : void
canvas SKCanvas
text string
color SKColor
fontName string
fontSize float
fontStyle SKTypefaceStyle
리턴 void

MeasureText() 공개 정적인 메소드

public static MeasureText ( string text, string fontName, float fontSize, SKTypefaceStyle fontStyle ) : SKRect
text string
fontName string
fontSize float
fontStyle SKTypefaceStyle
리턴 SkiaSharp.SKRect

SkToArgb() 공개 정적인 메소드

public static SkToArgb ( SKColor col ) : int
col SKColor
리턴 int

SkToArgb() 공개 정적인 메소드

public static SkToArgb ( int a, int r, int g, int b ) : int
a int
r int
g int
b int
리턴 int