I am working with images that are, for instance, 11000 x 1100 pixels. In the program I import the image using something like
call set_rgb_colours_default@(1)
call get_dib_size@(file,hres,vres,nb_colours,ier)
call create_graphics_region@(2,hres,vres)
call use_rgb_colours@(2,1)
call select_graphics_object@(2)
ihfile = import_bmp@(file,ierr)
call dib_paint@(0l,0l,ihfile,0l,0l)
call select_graphics_object@(1l)
call copy_graphics_region@(1,0,0,600,600,2,0,0,hres,vres,srccopy)
call perform_graphics_update@
and then with
call get_rgb_value@(i,j,colour1)
I follow the border line of the object by searching black and white pixels. The problem that I have found is that, as the image is larger than the graphics region, the subroutine seemingly checks only the pixels in the 600x600 region and leaves the rest outside the analysis. I would like to know how (if it is at all possible) can I analyse the whole image in memory instead of the image in the drawing region (which will always be smaller). Thanks a lot for any help on the matter!
Agustin