Declarationfunction StartPainting(): TRect;
Complete a programmatic painting operation and enact the changes.
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
3. Enact the retouching changes using EndPainting
ExampleImageEnView1.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