docs.unity3d.com
    Show / Hide Table of Contents

    Class PngEncoder

    Inheritance
    Object
    PngEncoder
    Namespace: Global Namespace
    Syntax
    public class PngEncoder

    Methods

    Decode(Byte[], ref Int32, ref Int32, ref PngEncoder.ColorType, ref Int32)

    Declaration
    public static byte[] Decode(byte[] raw, ref int width, ref int height, ref PngEncoder.ColorType colorType, ref int bitDepth)
    Parameters
    Type Name Description
    Byte[] raw
    Int32 width
    Int32 height
    PngEncoder.ColorType colorType
    Int32 bitDepth
    Returns
    Type Description
    Byte[]

    Encode(Byte[], Int32, Int32, PngEncoder.ColorType, Int32, PngEncoder.PngParam)

    Declaration
    public static byte[] Encode(byte[] raw, int width, int height, PngEncoder.ColorType colorType, int bitDepth, PngEncoder.PngParam pngParam = PngEncoder.PngParam.None)
    Parameters
    Type Name Description
    Byte[] raw
    Int32 width
    Int32 height
    PngEncoder.ColorType colorType
    Int32 bitDepth
    PngEncoder.PngParam pngParam
    Returns
    Type Description
    Byte[]

    GetTypeAndDepth(Int32, Int32, ref Int32)

    Declaration
    public static PngEncoder.ColorType GetTypeAndDepth(int blocksize, int componentCount, ref int bitDepth)
    Parameters
    Type Name Description
    Int32 blocksize
    Int32 componentCount
    Int32 bitDepth
    Returns
    Type Description
    PngEncoder.ColorType

    Inspect(Byte[], ref Int32, ref Int32, ref PngEncoder.ColorType, ref Int32, ref Int32)

    Declaration
    public static int Inspect(byte[] raw, ref int width, ref int height, ref PngEncoder.ColorType colorType, ref int bitDepth, ref int outsize)
    Parameters
    Type Name Description
    Byte[] raw
    Int32 width
    Int32 height
    PngEncoder.ColorType colorType
    Int32 bitDepth
    Int32 outsize
    Returns
    Type Description
    Int32
    Back to top
    Terms of use
    Copyright © 2023 Unity Technologies — Terms of use
    • Legal
    • Privacy Policy
    • Cookies
    • Do Not Sell or Share My Personal Information
    • Your Privacy Choices (Cookie Settings)
    "Unity", Unity logos, and other Unity trademarks are trademarks or registered trademarks of Unity Technologies or its affiliates in the U.S. and elsewhere (more info here). Other names or brands are trademarks of their respective owners.
    Generated by DocFX on 18 October 2023