Page 1 of 1

How I can to resize a Image with software?

Posted: Fri Sep 22, 2017 12:12 pm
by + 1
Not mouse!
Image->Resize(150%);

Re: How I can to resize a Image with software?

Posted: Fri Sep 22, 2017 2:59 pm
by Sergey Tkachenko
Inserting an image resized to 100x100, as an editing (undoable) operation:

Code: Select all

rve.TopLevelEditor.BeginUndoGroup(rvutInsert);
rve.TopLevelEditor.SetUndoGroupMode(True);
if rve.InsertPicture(...) then
begin
  rve.SetCurrentItemExtraIntProperty(rvepImageHeight, 100, True);
  rve.SetCurrentItemExtraIntProperty(rvepImageWidth, 100, True);
end;
rve.TopLevelEditor.SetUndoGroupMode(False);
Resizing the image at the caret position, as an editing (undoable) operation:

Code: Select all

if rve.TopLevelEditor.GetCurrentItem is TRVGraphicItemInfo then
begin
  rve.TopLevelEditor.BeginUndoGroup(rvutModifyItem);
  rve.TopLevelEditor.SetUndoGroupMode(True);
  rve.SetCurrentItemExtraIntProperty(rvepImageHeight, 100, True);
  rve.SetCurrentItemExtraIntProperty(rvepImageWidth, 100, True);
  rve.TopLevelEditor.SetUndoGroupMode(False);
end;
Adding an image to the end of document, when generating it (not undoable)

Code: Select all

rv.Clear;
<add something before the image>
rv.AddPictureEx(...);
rv.SetItemExtraIntProperty(rv.ItemCount - 1, rvepImageHeight, 100);
rv.SetItemExtraIntProperty(rv.ItemCount - 1, rvepImageWidth, 100);
<add something after the image>
rv.Format;

Re: How I can to resize a Image with software?

Posted: Fri Sep 22, 2017 3:25 pm
by + 1
Thank You very match, I did do it!

Re: How I can to resize a Image with software?

Posted: Mon Mar 11, 2019 8:17 pm
by angleitner
Which unit do I need for TRVGraphicItemInfo ?

Re: How I can to resize a Image with software?

Posted: Mon Mar 11, 2019 8:36 pm
by giovani.erthal
angleitner wrote: Mon Mar 11, 2019 8:17 pm Which unit do I need for TRVGraphicItemInfo ?
RVItem