Question: Imaging with Maple 11

Hello! First, please excuse me for my possible english mistakes (I'm french so...). Then, I need some help with Maple 11. As I wrote in the title I'm working on imaging. My aim is to create a lightsaber on a picture (as Photoshop do). So, at the beginning I'm working on a simple picture in black and white (bitmap file format), trying to create a sort of halo surrouded a white rectangle. So, I created a list where I where I placed inside the "{x,y}" of white pixels and I found out how to change the value of each pixel (even my teacher was defeated by the syntax^^) . But now, I would like to pick up the terms of this list and make a procedure (while loop?) to check if one of its eight neighboors are black or white. But I don't know how... does someone has a answer?
Please Wait...