Click or drag to resize

ImageGestureImage Class

Represents an image that can be drawn with a gesture - when you get a valid image you care about, it is good practice to call Reset on this gesture.
Inheritance Hierarchy
SystemObject
  DigitalRubySharedImageGestureImage

Namespace:  DigitalRubyShared
Assembly:  Assembly-CSharp (in Assembly-CSharp.dll) Version: 0.0.0.0
Syntax
C#
public class ImageGestureImage

The ImageGestureImage type exposes the following members.

Constructors
Properties
  NameDescription
Public propertyHeight
Height of the image
Public propertyName
A human readable name for this image
Public propertyPixels
Pixels of the image or null if no pixel data in which case just Rows is populated
Public propertyRows
Each bit is a pixel, each ulong is a row. Least significant bit is x = 0
Public propertyScore
The amount the image matched, where 1.0 is a perfect match
Public propertySimilarityPadding
Score padding to allow fuzzier (or negative for more precise) matches for this image
Public propertySize
Number of pixels in the image
Public propertyWidth
Width of the image
Top
Methods
  NameDescription
Public methodStatic memberCheckBit
Check if a bit is set in a ulong
Public methodClear
Reset all rows to 0 and all pixels to 0
Public methodClone
Clone this gesture image
Public methodDifference
Calculate how different this image is with another image. Images must be the same size to compare.
Public methodEquals
Check for equality
(Overrides ObjectEquals(Object).)
Protected methodFinalize (Inherited from Object.)
Public methodGetCodeForRowsInitialize
Gets a C# snippet that will create this image and populate the rows
Public methodGetHashCode
Get hash code
(Overrides ObjectGetHashCode.)
Public methodGetType (Inherited from Object.)
Public methodInitialize
Recalculate which pixels are on and off into a fast lookup of bits in ulong rows
Protected methodMemberwiseClone (Inherited from Object.)
Public methodStatic memberNumberOfBitsSet
Get the number of bits set in a ulong
Public methodSetPixelWithPadding
Set a pixel to on. Does not recalculate any rows.
Public methodSimilarity
Compute the similarity with another image. Images must be the same size to compare.
Public methodToString (Inherited from Object.)
Top
See Also