trichview.support
Re: Changing images when pasting from clipboard |
Author |
Message |
Sergey Tkachenko |
Posted: 11/13/2004 21:02:49 With Ctrl+V, images can be pasted: 1) if the Clipboard contains RichView Format 2) if the Clipboard contains RTF 3) if the Clipboard contains bitmap. You can easily modify images in cases (2) and (3). For (2), it can be done with RV_AfterImportGraphic (I was wrong in my previous reply, this variable is defined in RVFuncs unit). For (3), it can be done in OnPaste event (paste image from the Clipboard itself, modify it and insert in the RichViewEdit). I created a demo: http://www.trichview.com/support/files/pastewatermark.zip It draws "pasted" in the top left corner of all pasted bitmaps. As for (1), the only way to modify images is pasting data to the hidden editor, modify all images in it, then insert in the main editor. But I do not think it's necessary, because this format is copied to the Clipboard only by TRichView. > > Dear Sergey, > > I've searched for a method of changing images which are pasted from the clipboard. > But still I can't find how it should be. > > I'd like to insert some text on an image before it is placed into the RichViewEditor. > I understand how it must be done when opening an image from a local disk > but how can it be done when loading an image from the clipboard? (With CTRL-V) > > Thanks. > > Pieter E. > |
Powered by ABC Amber Outlook Express Converter