ImageEn for Delphi and C++ Builder ImageEn for Delphi and C++ Builder

 

ImageEn Forum
Profile    Join    Active Topics    Forum FAQ    Search this forumSearch
Forum membership is Free!  Click Join to sign-up
Username:
Password:
Save Password
Forgot your Password?

 All Forums
 ImageEn Library for Delphi, C++ and .Net
 ImageEn and IEvolution Support Forum
 Paste from clipboard to TImage using TImageEnIO?
 New Topic  Reply to Topic
Author Previous Topic Topic Next Topic  

PeterPanino

984 Posts

Posted - Mar 21 2014 :  18:02:29  Show Profile  Reply
Hi! I have a TImageEnIO component on a form, where the AttachedTImage property is set to a TImage on the form.

How can I PASTE an Image from the clipboard to the TImage using TImageEnIO, where the clipboard image format is not supported by TImage but should be supported by TImageEnIO?

Usually there are several image formats on the clipboard. Does TImageEnIO have a mode to automatically choose the "best" format?

xequte

39056 Posts

Posted - Mar 22 2014 :  02:25:16  Show Profile  Reply
Hi

Did you try attaching a TImageEnProc to your TImage and then use ImageEnProc1.PasteFromClipboard.



Nigel
Xequte Software
www.xequte.com
nigel@xequte.com
Go to Top of Page

PeterPanino

984 Posts

Posted - Mar 22 2014 :  04:55:14  Show Profile  Reply
Thanks!
Go to Top of Page

w2m

USA
1990 Posts

Posted - Mar 22 2014 :  05:09:46  Show Profile  Reply
procedure TForm1.Paste1Click(Sender: TObject);
{ Paste from clipboard to Attached TImage. }
begin
  ImageEnProc1.AttachedTImage := Image1;
  {If clipboard contains data valid for TImageEnProc then pastefromclipboard }
  if ImageEnProc1.IsClipboardAvailable then
    ImageEnProc1.PasteFromClipboard
  { else show a message }
  else
    MessageBox(0, 'Can not paste from clipboard.  The clipboard does not contain data valid for TImageEnProc.', 'Warning', MB_ICONWARNING or MB_OK);
end;

William Miller
Adirondack Software & Graphics
Email: w2m@frontiernet.net
EBook: http://www.imageen.com/ebook/
Apprehend: http://www.frontiernet.net/~w2m/index.html
Custom ImageEn Development
Go to Top of Page

PeterPanino

984 Posts

Posted - Mar 22 2014 :  05:37:16  Show Profile  Reply
Does anybody know Snagit Editor?

http://www.techsmith.com/snagit.html

It is an image editor for the well known screenshot utility Snagit from TechSmith.

When the image in Snagit Editor contains a TRANSPARENT AREA and I copy this image to the clipboard then sometimes ImageEnProc.PasteFromClipboard does work and sometimes it does not. It is not reproducible. Is this a bug in ImageEnProc.PasteFromClipboard?
Go to Top of Page

yogiyang

India
728 Posts

Posted - Mar 25 2014 :  21:03:11  Show Profile  Reply
I think it is not ImageEn bug.

It is something related with Snagit.

While using Snagit why not try to past the clipboard contents to MS Paint to see first and then try to get the clipboard contents through ImageEn.

FYI I have been using FastStone Capture for quite some time now. And I feel it is better than Snagit. I would advise you to look this extremely useful utility up and try it!

My 2 cents....



Yogi Yang
Go to Top of Page

Dany

67 Posts

Posted - Jul 17 2018 :  15:35:26  Show Profile  Reply
Hello!

Is it possible to use similar method for pasting images into a ImageEnMview thumbnail ?

Thank you!
Go to Top of Page

xequte

39056 Posts

Posted - Jul 17 2018 :  22:40:32  Show Profile  Reply
Hi

You can use the TAction, TImageEnMViewPasteFromClipboard.

If you don't want to use actions, open iexActionsMulti and copy the TImageEnMViewPasteFromClipboard code (it is qute simple).

Nigel
Xequte Software
www.imageen.com
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Reply to Topic
Jump To: