Hello,
I have a problem. I want insert a picture (JPEG) in SRichViewEdit and change the size of the height and width.
Maybe you can give an example code.
Greets
Insert Picture in SRichViewEdit
-
- Site Admin
- Posts: 17566
- Joined: Sat Aug 27, 2005 10:28 am
- Contact:
-
- Site Admin
- Posts: 17566
- Joined: Sat Aug 27, 2005 10:28 am
- Contact:
Code: Select all
with SRichViewEdit1.ActiveEditor.TopLevelEditor do begin
BeginUndoGroup(rvutInsert);
SetUndoGroupMode(True);
if InsertPicture('', jpg, rvvaBaseline) then begin
SetCurrentItemExtraIntProperty(rvepImageHeight, SIZE, True);
SetCurrentItemExtraIntProperty(rvepImageWidth, SIZE, True);
end;
SetUndoGroupMode(False);
end;
By default, SIZE is measured in pixels. However, it may be measured in twips, if SRichViewEdit1.ConvertToTwips was called (like in the ActionTest demos)