docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Method TryGetConvertedDataSize

    TryGetConvertedDataSize(int, Vector2Int, TextureFormat, out int)

    Method to be implemented by the provider to get the number of bytes required to store an image with the given dimensions and TextureFormat.

    Declaration
    public virtual bool TryGetConvertedDataSize(int nativeHandle, Vector2Int dimensions, TextureFormat format, out int size)
    Parameters
    Type Name Description
    int nativeHandle

    A unique identifier for the camera image to convert.

    Vector2Int dimensions

    The dimensions of the output image.

    TextureFormat format

    The TextureFormat for the image.

    int size

    The number of bytes required to store the converted image.

    Returns
    Type Description
    bool

    true if the output size was set.

    Exceptions
    Type Condition
    NotSupportedException

    Thrown if the implementation does not support camera image conversion.

    In This Article
    Back to top Copyright © 2023 Unity Technologies — Terms of use
    Generated by DocFX
    on Friday, September 22, 2023