ComponentOne Imaging for UWP
C1.UWP.Imaging Assembly / C1.Xaml.Imaging Namespace / PngCodec Class / Encode Method / Encode(C1Bitmap,Boolean) Method
C1Bitmap to encode.
true to use zip compression; otherwise, false.

In This Topic
    Encode(C1Bitmap,Boolean) Method
    In This Topic
    Gets a System.IO.Stream that contains a PNG representation of a C1Bitmap
    Syntax
    'Declaration
     
    Public Overloads Shared Function Encode( _
       ByVal bmp As C1Bitmap, _
       ByVal compress As System.Boolean _
    ) As System.IO.Stream
    public static System.IO.Stream Encode( 
       C1Bitmap bmp,
       System.bool compress
    )

    Parameters

    bmp
    C1Bitmap to encode.
    compress
    true to use zip compression; otherwise, false.

    Return Value

    A System.IO.Stream that contains a PNG representation of the given C1Bitmap.
    See Also