Hello,
When the user inserts a picture, can I stretch it by code, to be smaller?
Thank you
Stretch inserted picture
-
- Site Admin
- Posts: 17565
- Joined: Sat Aug 27, 2005 10:28 am
- Contact:
Inserting the picture and stretching it to StretchX x StretchY:
Code: Select all
re.BeginUpdate;
re.TopLevelEditor.BeginUndoGroup(rvutInsert);
re.TopLevelEditor.SetUndoGroupMode(True);
try
if re.InsertPicture(...) then begin
re.SetCurrentItemExtraIntProperty(rvepImageWidth, StretchX, True);
re.SetCurrentItemExtraIntProperty(rvepImageHeight, StretchY, True);
end;
finally
re.TopLevelEditor.SetUndoGroupMode(False);
re.EndUpdate;
end;