docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Method ConvertFloat32To8BitsImage

    ConvertFloat32To8BitsImage(uint, double, double)

    Returns a new image from the given converter from 32bits float to a 8Bits (e.g. depth render map)

    Declaration
    [HandleProcessCorruptedStateExceptions]
    public uint ConvertFloat32To8BitsImage(uint image32F, double minValue = -1, double maxValue = 1)
    Parameters
    Type Name Description
    uint image32F

    Image to convert

    double minValue

    Minimal value of the floats (will be 0 in 8bits)

    double maxValue

    Minimal value of the floats (will be 255 in 8bits)

    Returns
    Type Description
    uint
    In This Article
    Back to top
    Copyright © 2025 Unity Technologies — Trademarks and terms of use
    • Legal
    • Privacy Policy
    • Cookie Policy
    • Do Not Sell or Share My Personal Information
    • Your Privacy Choices (Cookie Settings)