ImageExtensionsToByteArray Method
Namespace: PCBI_API_Extensions.ExtensionsAssembly: PCBI.API_Library (in PCBI.API_Library.dll) Version: 17.0.0.0 (17.0.0.0)
public static byte[] ToByteArray(
this Image img,
ImageFormat format,
bool disposeImage = false
)
<ExtensionAttribute>
Public Shared Function ToByteArray (
img As Image,
format As ImageFormat,
Optional disposeImage As Boolean = false
) As Byte()
public:
[ExtensionAttribute]
static array<unsigned char>^ ToByteArray(
Image^ img,
ImageFormat^ format,
bool disposeImage = false
)
[<ExtensionAttribute>]
static member ToByteArray :
img : Image *
format : ImageFormat *
?disposeImage : bool
(* Defaults:
let _disposeImage = defaultArg disposeImage false
*)
-> byte[]
- img Image
-
- format ImageFormat
-
- disposeImage Boolean (Optional)
-
ByteIn Visual Basic and C#, you can call this method as an instance method on any object of type
Image. When you use instance method syntax to call this method, omit the first parameter. For more information, see
Extension Methods (Visual Basic) or
Extension Methods (C# Programming Guide).