| Function | public function s_pixel im_getpixel (integer x1, integer y1) | ![]() |
Gets pixel information
public function s_pixel im_getpixel (integer x1, integer y1); /// requires x,y coordinates of pixel /// return s_pixel structure string s_out, arr_out[] s_pixel ls_pixel s_out = this.i_PBImage.IM_GetPixel(x1,y1) f_string_array(s_out, arr_out[],";" ) IF (UPPERBOUND(arr_out) = 6 ) THEN ls_pixel.red = Long(arr_out[1]) ls_pixel.green = Long(arr_out[2]) ls_pixel.blue= Long(arr_out[3]) ls_pixel.brightness = Real(arr_out[4]) ls_pixel.hue = Real(arr_out[5]) ls_pixel.saturation = Real(arr_out[6]) END IF return ls_pixel end function