Hi! I need to use AutoCrop with images having each a different (mono-colored) border color. I.e., one image has a gray border area, another image a red border area, etc. So I must detect the color of the border area at run-time:
AutoCrop(10, GetColorOfTopMostLeftMostPixel);
But how can I define GetColorOfTopMostLeftMostPixel?
Of course, in addition of the above, a function like this would be fantastic:
GetPredominantColorOfBorderArea(BorderAreaWidth: Integer; var SuggestedToleranceValue: Integer): TColor;
Is there such a function?