How I can to resize a Image with software?
Posted: Fri Sep 22, 2017 12:12 pm
Not mouse!
Image->Resize(150%);
Image->Resize(150%);
Support forums for TRichView, ScaleRichView, Report Workshop and RVMedia components
https://reportworkshop.com/forums/
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;
RVItem