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

 

ImageEn Forum
Profile    Join    Active Topics    Forum FAQ    Search this forumSearch
 All Forums
 ImageEn Library for Delphi, C++ and .Net
 ImageEn and IEvolution Support Forum
 Copy an image without clipboard

Note: You must be registered in order to post a reply.
To register, click here. Registration is FREE!

View 
UserName:
Password:
Format  Bold Italicized Underline  Align Left Centered Align Right  Horizontal Rule  Insert Hyperlink   Browse for an image to attach to your post Browse for a zip to attach to your post Insert Code  Insert Quote Insert List
   
Message 

 

Emoji
Smile [:)] Big Smile [:D] Cool [8D] Blush [:I]
Tongue [:P] Evil [):] Wink [;)] Black Eye [B)]
Frown [:(] Shocked [:0] Angry [:(!] Sleepy [|)]
Kisses [:X] Approve [^] Disapprove [V] Question [?]

 
Check here to subscribe to this topic.
   

T O P I C    R E V I E W
hschmid Posted - Jan 20 2015 : 21:52:09
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
1   L A T E S T    R E P L I E S    (Newest First)
xequte Posted - Jan 21 2015 : 03:22:38
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