Not mouse!
Image->Resize(150%);
How I can to resize a Image with software?
How I can to resize a Image with software?
- Attachments
-
- Снимок13.jpg (9.59 KiB) Viewed 24974 times
-
- Site Admin
- Posts: 17557
- Joined: Sat Aug 27, 2005 10:28 am
- Contact:
Re: How I can to resize a Image with software?
Inserting an image resized to 100x100, as an editing (undoable) operation:
Resizing the image at the caret position, as an editing (undoable) operation:
Adding an image to the end of document, when generating it (not undoable)
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);
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;
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?
Thank You very match, I did do it!
-
- Posts: 2
- Joined: Tue May 31, 2016 10:18 am
Re: How I can to resize a Image with software?
Which unit do I need for TRVGraphicItemInfo ?
-
- Posts: 9
- Joined: Thu Dec 27, 2018 1:48 am