docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Method GetImagePixelColor

    GetImagePixelColor(uint, int, int)

    Returns the color of a given pixel in an image

    Declaration
    [HandleProcessCorruptedStateExceptions]
    public ColorAlpha GetImagePixelColor(uint image, int x, int y)
    Parameters
    Type Name Description
    uint image

    The image to get the pixel from

    int x

    The x pixel coordinates

    int y

    The y pixel coordinates

    Returns
    Type Description
    ColorAlpha
    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)