Loads image from a byte array with the specified file format.
Namespace: Dynamsoft.DotNet.TWAINAssembly: DynamicDotNetTWAIN (in DynamicDotNetTWAIN.dll) Version: 3.0.0.0 (3.0.0.0)
Syntax
| C# |
|---|
public bool LoadImageFromBytes( byte[] byBuffer, DWTImageFileFormat enumImageFileFormat ) |
| Visual Basic |
|---|
Public Function LoadImageFromBytes ( _ byBuffer As Byte(), _ enumImageFileFormat As DWTImageFileFormat _ ) As Boolean |
Parameters
- byBuffer
- Type: array<System..::..Byte>[]()[][]
A byte array of the image data.
- enumImageFileFormat
- Type: Dynamsoft.DotNet.TWAIN.Enums..::..DWTImageFileFormat
DWTImageFileFormat type, specifies the file format
Return Value
True indicates success. False indicates failure.
Exceptions
| Exception | Condition |
|---|---|
| Dynamsoft.DotNet.TWAIN..::..TwainException | When an error occurs and IfThrowException property is true, an exception will be thrown. When IfThrowException property is false, please check ErrorCode and ErrorString. |