Thank you very much!
ThisRect := imgHome.Proc.AutoCrop(0, BackColor, False);
imgHome.Proc.Crop(Max(ThisRect.Left - ThisCropMargin, 0), // X1
Max(ThisRect.Top - ThisCropMargin, 0), // y1
Min(ThisRect.Right + ThisCropMargin, imgHome.IEBitmap.Width), // x2
Min(ThisRect.Bottom + ThisCropMargin, imgHome.IEBitmap.Height)); // y2