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
 Copy an image without clipboard
 New Topic  Reply to Topic
Author Previous Topic Topic Next Topic  

hschmid

1 Posts

Posted - Jan 20 2015 :  21:52:09  Show Profile  Reply
Hi,
I'd like to write a program that creates small images with 4 thumbnails of the files in a bunch of directories. That means each image has 4 thumbs of 4 files of one directory. At the moment I can do this by the following code:

// select everything in ImageEn1
ImageEn1.DeSelect;
ImageEn1.InvertSelection;
// copy ImageEn1 to clipboard
ImageEn1.Proc.SelCopyToClip;
ImageEn2.DeSelect;
// select a region in ImageEn2 with widht = height = thumbsize
ImageEn2.Select(lX, lY, lX + Width, lY + Height);
// paste clipboard to selected region
ImageEn2.Proc.SelPasteFromClipStretch;
ImageEn2.DeSelect;

Is there a method to do this without the clipboard? Using the clipboard means that I can't do this routine in an background application (scanning all my hdds and creating thumbs for all dirs) and working with different apps that also use the clipboard...

Regards
Harald

xequte

39138 Posts

Posted - Jan 21 2015 :  03:22:38  Show Profile  Reply
Hi Harald

I'm away from the office for a few days, so I can't give you the exact code, but basically you would iterate through the images in your selection and then use IEBitmap.DrawToTIEBitmap to output them to your ImageEn2.

Please see the examples at:

http://www.imageen.com/help/TIEBitmap.DrawToTIEBitmap.html

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