C# 클래스 jSignature.Tools.Base30Converter

This class Converts jSignature data into compressed alphanum base30 string and back.
파일 보기 프로젝트 열기: brinley/jSignature 1 사용 예제들

공개 메소드들

메소드 설명
Base30Converter ( ) : System
Base30ToNative ( string data ) : int[][][]

Returns a .net-specific array of arrays structure representing a single signature stroke A compressed string like this one: "3E13Z5Y5_1O24Z66_1O1Z3_3E2Z4" representing this raw signature data: [{'x':[100,101,104,99,104],'y':[50,52,56,50,44]},{'x':[50,51,48],'y':[100,102,98]}] turns into this .Net-specific structure (of array or arrays of arrays) [[[100,50],[1,2],[3,4],[-5,-6],[5,-6]], [[50,100],[1,2],[-3,-4]]]

DecompressStrokeLeg ( string data ) : int[]
NativeToBase30 ( int data ) : string

Returns a compressed string like this one: "3E13Z5Y5_1O24Z66_1O1Z3_3E2Z4" Originating from a stroke list such as: [[[100,50],[1,2],[3,4],[-5,-6],[5,-6]], [[50,100],[1,2],[-3,-4]]]

비공개 메소드들

메소드 설명
CompressStrokeLeg ( int val ) : string
FromBase30 ( List data ) : int
GetStroke ( string legX, string legY ) : int[][]
ToBase30 ( int val ) : List

메소드 상세

Base30Converter() 공개 메소드

public Base30Converter ( ) : System
리턴 System

Base30ToNative() 공개 메소드

Returns a .net-specific array of arrays structure representing a single signature stroke A compressed string like this one: "3E13Z5Y5_1O24Z66_1O1Z3_3E2Z4" representing this raw signature data: [{'x':[100,101,104,99,104],'y':[50,52,56,50,44]},{'x':[50,51,48],'y':[100,102,98]}] turns into this .Net-specific structure (of array or arrays of arrays) [[[100,50],[1,2],[3,4],[-5,-6],[5,-6]], [[50,100],[1,2],[-3,-4]]]
public Base30ToNative ( string data ) : int[][][]
data string string of data encoded in base30 format. Ex: "3E13Z5Y5_1O24Z66_1O1Z3_3E2Z4"
리턴 int[][][]

DecompressStrokeLeg() 공개 메소드

public DecompressStrokeLeg ( string data ) : int[]
data string
리턴 int[]

NativeToBase30() 공개 메소드

Returns a compressed string like this one: "3E13Z5Y5_1O24Z66_1O1Z3_3E2Z4" Originating from a stroke list such as: [[[100,50],[1,2],[3,4],[-5,-6],[5,-6]], [[50,100],[1,2],[-3,-4]]]
public NativeToBase30 ( int data ) : string
data int .Net-specific structure (of array or arrays of arrays)
리턴 string