ImageMan.Net Version 3 Summer 2012 Release
ToByteArray(ImEncoder,ProcessEventHandler) Method
See Also  Send Feedback
DTI.ImageMan Namespace > ImImage Class > ToByteArray Method : ToByteArray(ImEncoder,ProcessEventHandler) Method





encoder
The encoder to use
process
The ProcessEventHandler delegate to call as the image is written

Glossary Item Box

Writes the image to a byte array using the specified encoder

Syntax

Visual Basic (Declaration) 
Public Overloads Function ToByteArray( _
   ByVal encoder As ImEncoder, _
   ByVal process As ProcessEventHandler _
) As System.Byte()
Visual Basic (Usage)Copy Code
Dim instance As ImImage
Dim encoder As ImEncoder
Dim process As ProcessEventHandler
Dim value() As System.Byte
 
value = instance.ToByteArray(encoder, process)
C# 
public System.byte[] ToByteArray( 
   ImEncoder encoder,
   ProcessEventHandler process
)
JScript 
public function ToByteArray( 
   encoder : ImEncoder,
   process : ProcessEventHandler
) : System.byte[];
Managed Extensions for C++ 
public: System.byte[]* ToByteArray( 
   ImEncoder* encoder,
   ProcessEventHandler* process
) 
C++/CLI 
public:
System.array<byte>^ ToByteArray( 
   ImEncoder^ encoder,
   ProcessEventHandler^ process
) 

Parameters

encoder
The encoder to use
process
The ProcessEventHandler delegate to call as the image is written

Return Value

A byte array containing the image data in the specified image format

Requirements

Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

See Also

© 2014 Data Techniques, Inc. All Rights Reserved.