Topic: Image field

Hi,
Is there a (simple) way to show only a part of the image in the image field instead of all the image ?
(based on x,y coordinates with width and height of the part to display)
Regards,
jihem

while(! success=retry());
https://jihem.itch.io

Re: Image field

Hello.


Place a Image component on top of the DBImage component, so you can draw transparent rectangle on the Image component to show only part of DBImage component


procedure Form2_OnShow (Sender: TObject; Action: string);
begin
    Form2.Image1.Canvas.Rectangle(50, 50, 150, 150);
end;

But in this case you don't have access to buttons of DBImage component.

Dmitry.

Re: Image field

Thanks for the answer (to hide unused part).

Is there a way to crop a part from the image ?

while(! success=retry());
https://jihem.itch.io

Re: Image field

But now it's work like a crop.

Dmitry.

Re: Image field

Hi,
Sorry to annoy you again :-/

It's not exactly a crop (even if it tastes like it). It hides the whole image except the rectangle area (most of the space is useless).
I would like to display the 'cropped' part on the entire area of the image field (zoomed).

Thanks
jihem

while(! success=retry());
https://jihem.itch.io

Re: Image field

Unfortunately it does not support.

Dmitry.