Hi
I can't see any specifically wrong with the code, you'd need to email me a demo that reproduces it.
However there are more efficient ways to do this that will probably resolve the problem, for example (assuming a rectangular ROI), something like (untested):
bmp := TIEBitmap.create( selWidth, SelHeight );
for I := sf to ef do
begin
ImageEnMView1.GetTIEBitmap( i ).CopyRectTo( bmp, selX, selY, 0, 0, selWidth, SelHeight );
bmp.Write( imagedir+'\sel_'+inttostr(i)+'.JPG' );
ImageEnMView1.ReleaseBitmap( i, False );
caption := inttostr(i)+'/'+inttostr(ef);
end;
bmp.Free;
See also: https://www.imageen.com/help/TIEBitmap.CopyRectTo.html
Nigel
Xequte Software
www.imageen.com