function CalcAverageRGB(SampleCount : Integer = 0): TRGB;
Description
Return the average RGB values of the selection.
If iSampleCount = 0 the entire image is analyzed. To speed up processing you can sample a smaller number of points, e.g. 100.
You can also get a sample of the border color by specifying -9 (returns the average of the four corners of the image plus four border midpoints - ignoring any selection).
Note: If the image PixelFormat is not ie24RGB, it will be converted