ScanUtils Class
Click or drag to resize
ScanUtils Class

» Asprise Scan Home · Developer's Guide

Scan related utility functions.
Inheritance Hierarchy

Namespace: asprise_imaging_api
Assembly: (in Version: (
public class ScanUtils

The ScanUtils type exposes the following members.

Public methodScanUtils
Initializes a new instance of the ScanUtils class
Public methodStatic membercanBeConvertedToNumber
Whether the string can be converted to a number.
Public methodStatic memberdisplayImageOnForm
Returns a newly created form with control displaying the given image.
Public methodEquals
Determines whether the specified Object is equal to the current Object.
(Inherited from Object.)
Public methodStatic memberequalsIgnoreCase
Returns true if the two given strings equal to each other ignoring cases.
Public methodGetHashCode
Serves as a hash function for a particular type.
(Inherited from Object.)
Public methodStatic membergetMimeType
Gets the mime type of the given image format.
Public methodGetType
Gets the Type of the current instance.
(Inherited from Object.)
Public methodStatic memberisFloat
Whether the given val is of float, double or decimal.
Public methodStatic memberisInteger
Whether the given val is of byte, short, ushort, int, uint, long or ulong.
Public methodStatic memberisNumber
Whether the given val is of integer or float.
Public methodStatic memberisSimpleImageFormat
Returns true if image file ends with jpg, png, bmp, tif or tiff.
Public methodStatic membernewBitmapFromBase64
Creates bitmap from base64 data.
Public methodStatic membernormalizeImageFormat
Normalize image format name.
Public methodStatic memberparseFrame
Parses frame value like "(0.0, 0.0, 4.0, 6.0)"
Public methodStatic memberparseJson
Parses json and returns the root element.
Public methodStatic memberpreviewImage
Preview image using windows photo viewer with fallback to default associated program.
Public methodStatic memberquoteIfHaveSpaces
Wraps with quotes if string contains space.
Public methodStatic memberstartProcess
Starts the process of the given fileName optionally with args.
Public methodStatic membertoDecimal
Convert the given input to decimal or fall back to the default value.
Public methodStatic membertoDictStringString
Convert dictionary to string based values.
Public methodStatic membertoInteger
Any object to integer.
Public methodStatic membertoListOfString
Convert list of objects to list of strings.
Public methodToString
Returns a string that represents the current object.
(Inherited from Object.)
Public methodStatic memberwriteElementArray
Writes array value to JSON.
Public methodStatic memberwriteElementDecimal
Writes decimal value to JSON.
Public methodStatic memberwriteElementDict
Writes dictionary value to JSON.
Public methodStatic memberwriteElementInt
Writes int value to JSON.
Public methodStatic memberxeElementArrayToList
Extract JSON array as list.
Public methodStatic memberxeElementObjectToDictionary
Extract the whole JSON node as a dictionary.
Public methodStatic memberxeElementValue
Extract value.
Public methodStatic memberxeElementValueAsDecimal
Extract value as decimal from JSON.
Public methodStatic memberxeElementValueAsInt
Extract value as int from JSON.
Public methodStatic memberxeElementValueAsString
Extract value as string from JSON.
Public fieldStatic memberSTR_false
The constant string 'false'
Public fieldStatic memberSTR_true
The constant string 'true'
See Also