AdaCAD Library Documentation - v1.1.4
    Preparing search index...

    Interface AnalyzedImage

    an object that is stored in memory when an image is loaded

    the file name of the uploaded file

    the raw data of the image

    an array of unique hex values found in this image

    an array that matches each index in the color array to a color index that it should be grouped with

    the HTML image object to write the data into

    an 2D array associating every pixel in the image with the id of the associated color in the colors array

    a text warning is added if the image file violates rules

    interface AnalyzedImage {
        colors: Color[];
        colors_mapping: { from: number; to: number }[];
        data: ImageData;
        height: number;
        image: HTMLImageElement;
        image_map: number[][];
        name: string;
        proximity_map: { a: number; b: number; dist: number }[];
        type: string;
        warning: string;
        width: number;
    }
    Index

    Properties

    colors: Color[]
    colors_mapping: { from: number; to: number }[]
    data: ImageData
    height: number
    image: HTMLImageElement
    image_map: number[][]
    name: string
    proximity_map: { a: number; b: number; dist: number }[]
    type: string
    warning: string
    width: number