Picture Cropping Challenge

O

onceuponatime

I hope someone can help me. I've read the posts on how to
programatically crop pictures in Excel through VBA. I would like to do

this based on where I have image data in a picture making the following

assumptions.


1. Picture is pre-loaded into in a shape range object.
2. Image itself is a picture surrounded by a lot of the same color. eg
A multicolored ball surrounded by Green pixels.


I would like to traverse the pixels from left to right, right to left,
etc. As soon as green is not detected, I would like to signify this as

the top, left, etc. boundary so that when I crop, only the image itself

is isolated. Once I know these boundaries, I can use the cropping
function in VBA to finish the job.


Any help would be greatly appreciated!
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads


Top