Hi
> Is there any way by which one can split an image (horizontally or vertically) using percentage.
I assume you mean copy the left part of an image, for example, from the point (0 x 0) to (desired width x height).
In that case it would only be a simple matter of using:
DestBitmap.Canvas.CopyRect(Rect(0,0,iWidth,SourceBitmap.height), SourceBitmap.Canvas, Rect(0,0,iWidth,SourceBitmap.height));
Where iWidth is MulDiv(SourceBitmap.Width, iDesiredPercentage, 100);
Also assumes you have set DestBitmap size correctly.
Is that what you are trying to do? You could use two TIEBitmaps if you need to loading and saving support.
Nigel
Xequte Software
www.xequte.com
nigel@xequte.com