There is no easy way to do this with the examples you provided. You will have to write some code that calculates the edges of the image. My example shows how you can access the individual pixels of an image. You could use this to determine the edges of your images.
↧