VIDEO.GetPixel |
rgb = VIDEO.GetPixel( xStart AS REAL, yStart AS REAL, [xEnd AS REAL=xStart], [yEnd AS REAL=yStart], [nProcess AS REAL=PIX_AVERAGE+PIX_FL_SCALED] ) AS INTEGER
Example:
DIM strOut AS STRING DIM pix AS INTEGER
' Get Pixel RGB Value at 10, 160 pix = VIDEO.GetPixel( nControl, 10, 160 ) strOut = FORMAT( "Pixel Value at 10, 160 = RGB( %d, %d, %d )", RED( pix ), GREEN( pix ), BLUE( pix ) ) PRINT strOut,
' Get Average Pixel RGB Value at 10, 160, 10, 200 pix = VIDEO.GetPixel( nControl, 10, 160, 10, 200 ) strOut = FORMAT( "Pixel Value at 10, 160 = RGB( %d, %d, %d )", RED( pix ), GREEN( pix ), BLUE( pix ) ) PRINT strOut,
|