Click or drag to resize

MemoryDataTransferEventArgs Class

This class is used with the MemoryDataTransfer event of the TwainController.
Inheritance Hierarchy

Namespace:  Atalasoft.Twain
Assembly:  Atalasoft.DotTwain (in Atalasoft.DotTwain.dll) Version: (.NET 4.5.2, x86)
public class MemoryDataTransferEventArgs : EventArgs

The MemoryDataTransferEventArgs type exposes the following members.

Public propertyBitsPerPixel
Gets the number of bits per pixel.
Public propertyBytesPerRow
Gets the number of bytes per scan line in the data.
Public propertyBytesWritten
Get the number of bytes written to the Data pointer.
Public propertyCancel
Gets or sets a value that indicates whether the scan should be canceled.
Public propertyColumns
Gets the number of columns that are contained in the Data.
Public propertyCompression
Gets the compression used for the Data.
Public propertyData
Gets a pointer to the scan data.
Public propertyDataHandled
Gets or sets a value indicating whether or not the developer is handling the data.
Public propertyOffset
Gets the row and column offset of this data.
Public propertyCode exampleOutputStream

Gets or sets a Stream to use for saving the image data.

If this property is set to a Stream with write access, DotTwain will write the image data into the stream instead of holding it in memory. No Bitmap object will be created when an OutputStream is provided. See the remarks below for more information.

Public propertyPixelType
Gets the pixel type.
Public propertyPlanar
Is using planar data store.
Public propertyResolution
Gets the resolution.
Public propertyRows
Gets the rows contained in this data.
Public propertySamplesPerPixel
Gets the number of samples per pixel.
Public methodEquals
Determines whether the specified object is equal to the current object.
(Inherited from Object.)
Protected methodFinalize
Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.
(Inherited from Object.)
Public methodGetBitsPerSample
Gets the bits in the sample.
Public methodGetHashCode
Serves as the default hash function.
(Inherited from Object.)
Public methodGetType
Gets the Type of the current instance.
(Inherited from Object.)
Protected methodMemberwiseClone
Creates a shallow copy of the current Object.
(Inherited from Object.)
Public methodToString
Returns a string that represents the current object.
(Inherited from Object.)

If the data is handled outside of DotTwain, be sure to set the DataHandled property to true.

To cancel the acquisition, set the Cancel parameter to true.

See Also