trichview.com

trichview.support




Re: Changing images when pasting from clipboard


Return to index


Author

Message

Sergey Tkachenko

Posted: 11/09/2004 22:43:42


In RVRTF unit, there is a procedural variable RV_AfterImportGraphic having

type

TRV_AfterImportGraphicsProc = procedure(Graphic: TGraphic);

It is called for each image imported with RTF.

By default it points to the function that does nothing.

You can create your function which will modify graphic and assign it to

RV_AfterImportGraphic.


The method above can be used if you want to modify pictures themselves, not

to scale them in RichView.



>

> When I insert an image using "InsertPicture", I resize some images to a

standard

> size. I'd like to resize the images which are pasted from the clipboard to

> RichView also. (Using CTRL-C for copying to the clipboard from MS Word en

> using CTRL-P for pasting from the clipboard in RichView)

>

> Do I have to use the OnPaste method??

>

> Do you have a solution?

>

> Thanks.

>

> Pieter E.





Powered by ABC Amber Outlook Express Converter