RingEffect example for C++ Builder
void __fastcall TForm1::Button1Click(TObject *Sender)
{
/* Load the bitmap, keeping the bits per pixel of the file */
LEADImage1->Load("e:\\image1.cmp", 0, 1, 1 );
L_UINT uXorg = (L_UINT)(LEADImage1->BitmapWidth/2);
L_UINT uYorg = (L_UINT)(LEADImage1->BitmapHeight/2);
L_UINT uRadius = uXorg;
/* Apply a ring effect to this bitmap with origin (uXorg, uYorg).
The maximum ring radius is equal to half of the bitmap? width. Draw 10 rings,
fill the undefined areas with the Black color and the shift angle is equal
to 1 degrees. Note that you will have undefined areas only if the bitmap width
is greater than the bitmap height. */
LEADImage1->RingEffect( uXorg, uYorg, uRadius, 10, 0, RGB(0,0,0), 100, RING_COLOR + RING_FIXEDANGLE + RING_MAXRADIUS );
}