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...
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.