ComponentOne Input for WinForms
C1.Win.C1Input.4.5.2 Assembly / C1.Win.C1Input Namespace / C1PictureBox Class / ImageToByteArray Method
Image to return as a byte array.
Format in which to return the image contents.

In This Topic
    ImageToByteArray Method
    In This Topic
    Returns the contents of an image.
    Syntax
    'Declaration
     
    Public Shared Function ImageToByteArray( _
       ByVal image As System.Drawing.Image, _
       ByVal format As System.Drawing.Imaging.ImageFormat _
    ) As System.Byte()
    public static System.byte[] ImageToByteArray( 
       System.Drawing.Image image,
       System.Drawing.Imaging.ImageFormat format
    )

    Parameters

    image
    Image to return as a byte array.
    format
    Format in which to return the image contents.
    See Also