function TForm1.GetPoint(bmp: TBitmap): TPoint;
var
I, J: Integer;
Value: TColor;
begin
Value := bmp.Canvas.Pixels[1,1] and $000000FF;
Result := Point(1,1);
for I:= 1 to bmp.Width do
for J:= 1 to bmp.Height do begin
if (bmp.Canvas.Pixels[I,J] and $000000FF) <= Value then
Continue;
Result := Point(I,J);
Value := bmp.Canvas.Pixels[I,J] and $000000FF;
end;
end;