Class ImageData | Package Manager UI website
docs.unity3d.com
    Show / Hide Table of Contents

    Class ImageData

    Inheritance
    System.Object
    ImageData
    EndianReverser
    ZipImage
    ZipPredict16Image
    ZipPredict32Image
    Namespace: PhotoshopFile.Compression
    Syntax
    public abstract class ImageData

    Constructors

    ImageData(Size, Int32)

    Declaration
    protected ImageData(Size size, int bitDepth)
    Parameters
    Type Name Description
    Size size
    System.Int32 bitDepth

    Properties

    AltersWrittenData

    Declaration
    protected abstract bool AltersWrittenData { get; }
    Property Value
    Type Description
    System.Boolean

    BitDepth

    Declaration
    public int BitDepth { get; }
    Property Value
    Type Description
    System.Int32

    BytesPerRow

    Declaration
    public int BytesPerRow { get; }
    Property Value
    Type Description
    System.Int32

    Size

    Declaration
    public Size Size { get; }
    Property Value
    Type Description
    Size

    Methods

    Read()

    Reads decompressed image data.

    Declaration
    public virtual byte[] Read()
    Returns
    Type Description
    System.Byte[]

    ReadCompressed()

    Reads compressed image data.

    Declaration
    public abstract byte[] ReadCompressed()
    Returns
    Type Description
    System.Byte[]

    Write(Byte[])

    Writes rows of image data into compressed format.

    Declaration
    public void Write(byte[] array)
    Parameters
    Type Name Description
    System.Byte[] array

    An array containing the data to be compressed.

    Back to top
    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