COLOR_PIXEL_BLUE()

COLOR_PIXEL_BLUE(N,X,Y)

RETURNS THE BLUE PRIMARY COMPONENT OF A PIXEL IN THE SYSTEM OBJECT NUMBER N

  • Type: Function
  • Parameters: 3
  • Group: System Objects

ACTION

The function COLOR_PIXEL_BLUE(N,X,Y) returns the blue primary component of a pixel in the system object designated by its number N.

The system object is of type : FORM, PICTURE.

X and Y are the coordinates of the analyzed pixel.

SYNTAX: Result=COLOR_PIXEL_BLUE(N,X,Y)

  • N = system object number (integer or real). Must be greater than 0 and less than or equal to the allowed maximum number of system objects.
  • X = X-component value (integer or real) of the pixel.
  • Y = Y-component value (integer or real) of the pixel.

USE

  • The function CLICKED() is used to know the blue component of a pixel in a FORM, a PICTURE.

ERROR

  • If number N is not a correct expression.
  • If number N exceeds the allowed maximum number of system objects.
  • If number N is less than 0.
  • If the system object number N does not exist.
  • If number N is not the number of a FORM, a PICTURE.
  • If X or Y is not a correct expression.
  • If X or Y have negative value.

EXAMPLE

rem create a PICTURE

picture 1

rem fill the PICTURE with a picture

file_load 1,"my picture.bmp"

rem print the blue component of the pixel in (10,30)

print color_pixel_blue(1,10,30)

SEE ALSO

FORM

PICTURE

COLOR_PIXEL_GREEN

COLOR_PIXEL_RED