PaintScaling example for C++ Builder (ImageList Control)

void __fastcall TForm1::Button1Click(TObject *Sender)
{
    /*toggle through the paint scale modes*/
    switch(LEADImgList1->PaintScaling)
   {
      case psNormal:
             LEADImgList1->PaintScaling = psResample;
             Edit1->Text = "Resample";
      break;
      case psResample:
             LEADImgList1->PaintScaling = psBicubic;
             Edit1->Text = "Bicubic" ;
      break;
      case psBicubic:
         LEADImgList1->PaintScaling = psNormal;
         Edit1->Text = "Normal";
      break;
   }
}