Page 1 of 1

Maximum Image Size

Posted: Fri Feb 24, 2006 5:54 pm
by carloscastro
Hi,

Is there a way to set a maximum width size for an image so that when inserting an image it automatically resizes the image to that maximum.

Thanks,
Carlos Castro

Posted: Sun Feb 26, 2006 10:05 am
by Sergey Tkachenko
Well, you can try to use OnItemAction event for this.

Code: Select all

uses RVItem;

if (ItemAction=rviaInserted) and (Item is TRVGraphicItemInfo) then begin
  Item.ImageWidth := ...
  Item.ImageHeight := ...
end;

Posted: Mon Feb 27, 2006 12:28 pm
by carloscastro
Thanks Sergey,

I solved the problem another way, replacing the insert image dialog with one developed by me in which you choose the image and the program automatically resizes it to my maximum width.
The problem of doing it in the editor is that the image is only resized in html code and not in the real size of the image.

Thanks anyway for your answer.