Hi!
Here we go:
Get the exact RGB Values of your blue sqare and assign them to the const "MyCol"
Now you got the blue rectangle.
Create a TBitmap of the same dimension.
Make a canvas.copyrect from the blue rect to the bitmap.
Done.
Happy coding!
Winni
Hi winni, many thanks for your code. It is great but Im sorry, I think I wasn't clear with the information.
I was referring to crop the jpg file using the position (left, top, right, bottom) not the colors blue and yellow.
Please, see the new attached image and many thanks again.
(I will understand if you don't want to code it again anymore.)
Best regards