I am trying to crop a image into 18 x 18 by using something like this
tmpBitmap->LoadFromFile(imgPath);
TRect iRect{{0,0},18,18};
newSymbl->Width = 18;
newSymbl->Height = 18;
newSymbl->Bitmap->CopyFromBitmap(tmpBitmap.get(),iRect,0,0);
but it is not working, nothing is displayed on the screen
newSymbl->Bitmap->LoadFromFile(imgPath);
above displays whole image on the screen but i only want 18 x 18 part from the top