APIlibrenderinglib/rendering/sampleOn this pagelib/rendering/sample Interfaces PixelRect Variables PREVIEW_MAX_PIXELS SAMPLE_PIXELS SAMPLE_SCALE Functions averageColour copyPixels flattenArea pixelRect readPixels toHex