ImageEn, unit iexUserInteractions

TIERetouchToolInteraction.AddToPainting

TIERetouchToolInteraction.AddToPainting


Declaration

function AddToPainting(BmpX, BmpY: Integer): TRect;


Description

Add extra destination points to a programmatic painting operation.
Result is the area that was painted (in screen coordinates).

Normally, painting operations are performed by the user via miRetouchTool, but it can be performed with code using:
1. Start retouching using StartPainting
2. Add extra points to the retouching operation using AddToPainting (Optional)
3. Enact the retouching changes using EndPainting


Example

ImageEnView1.RetouchTool.StartPainting( 50, 250 ); // Start at 50,250
for i := 51 to 200 do
  ImageEnView1.RetouchTool.AddToPainting( i, 250 ); // Add destinations to 200,250
ImageEnView1.RetouchTool.EndPainting(); // Enact the changes