Page 1 of 1

How to set 100% scale (original size) for Image in RVEditor?

Posted: Mon Apr 03, 2006 4:10 am
by maxic2
Good day.
I put some image on document and resize it using mouse.
How can I set original image's size ?

Posted: Mon Apr 03, 2006 7:49 am
by Sergey Tkachenko
Assuming that this image is at the position of caret:

Code: Select all

rve.TopLevelEditor.BeginUndoGroup(rvutModifyItem);
rve.TopLevelEditor.SetUndoGroupMode(True);
rve.SetCurrentItemExtraIntProperty(rvepImageHeight, 0, True);
rve.SetCurrentItemExtraIntProperty(rvepImageWidth, 0, True);
rve.TopLevelEditor.SetUndoGroupMode(False);