To programmatically move an existing selection in ImageEnView one pixel upwards, I have to use this code:
var R := ImageEnView1.SelectedRect;
ImageEnView1.Select(R.x, R.y - 1, R.x + R.width, R.y + R.height - 1);
However, this works only if the existing selection is a RECTANGLE - because in the case of an existing Circle selection the selection is transformed to a rectangular selection. So how can I get the selection type from an existing selection?
And how can I move a Polygon selection one pixel?
And how can I move a MagicWand selection one pixel?
P.S.: Working with selections would be a lot easier with a powerful TSelection class...