C# Класс jSignature.Tools.Base30Converter

This class Converts jSignature data into compressed alphanum base30 string and back.
Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
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