I developed a medical image capture system that works correctly, but the image frames I get from the video contain a black mask on both sides of the image. The width of the black mask may vary depending on the connected video equipment (ie the width of the mask changes with each device). This black mask is useless for storing, displaying images or printing them. I need to crop the visible region of the image (useful region), so my problem is: How can I detect the width of the black mask and then remove it using some Imageen vcl component?