Bitmap to Clipboard

linum

Active Member
Licensed User
Is there any way to point to a bitmap and copy it to the clip board (without having to open it)? I'm working on an app that uses Agramhs Richtext box and I was trying to paste a bitmap into the richtext box programically.

His richtext box does include the option:

B4X:
richtextbox.PasteBitmap

We just need a way to put the bitmap on the clipboard.



Is this something the hardware Lib can handle? Any other solution?

Thanks for all the great help...





linum
 

agraham

Expert
Licensed User
Longtime User
From RichTextDesktop help
CopyImageToClipboard(Img AS Image) : Copies the specified image to the clipboard from where it may be pasted into a document. Image can be any source of an image in Basic4PPC. .e.g. Form.Image or ImageControl.Image or ImageList.Item(x) etc.
 

linum

Active Member
Licensed User
Oh... so that means I can load my image to an image control and then use CopyImageToClipboard, then use richtexbot.PasteBitmap.


Thanks...
 
Last edited:
Top