Pixelate example for C++ Builder

void __fastcall TForm1::PixelateClick(TObject *Sender)
{
   TPoint ptCenter;

   ptCenter.x=  (int)(LEADImage1->BitmapWidth/2);
   ptCenter.y=  (int)(LEADImage1->BitmapHeight/2);

   LEADImage1->Pixelate( 5, 10, 100, ptCenter, PIX_AVR | PIX_RAD | PIX_WPER | PIX_HPER );
}