Copy TImage Section to another TImage?
Posted on 2000-03-15
I setup coordinates, which change to be any size. I need to be able to take what they mapped out and put into another TImage.
Problem: When I use Copyrect, then it will not resize the TImage, therefore leaving a border or cutting off part of the picture, depending on whether it is smaller or bigger than the TImage.
I need a solution that can update it without a lot of memory usage, because as they drag around the box (the mapped area) then it will change in another window simultaneously.
Note: If the 2nd TImage does not resize to the section I copy it to, then it will not work in the TScrollBox. I cannot set the TImage to alClient because then it will cut off part of the picture and the scrollbars will not show the entire picture. I need the Image2 to do AutoResize.