Note: You must be registered in order to post a reply.To register, click here. Registration is FREE!
ImageEnView1.Proc.AutoCrop(0, CreateRGB(87, 255, 63), 16);
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
rect := ImageEnView1.Proc.AutoCrop( 0, clWhite, False ); ImageEnView1.Proc.Crop( max( rect.Left - Crop_Margin, 0 ), max( rect.Top - Crop_Margin, 0 ), min( rect.Right + Crop_Margin, ImageEnView1.IEBitmap.Width ), min( rect.Bottom + Crop_Margin, ImageEnView1.IEBitmap.Height ) );