Follow along with the video below to see how to install our site as a web app on your home screen.
Note: This feature may not be available in some browsers.
Graphics::TBitmap *bmpOriginalImage, *bmpPartOfImage = new Graphics::TBitmap;
TRect rectPartOfOriginalImage, rectNewImage;
rectPartOfOriginalImage.Top = iTopEdgeOfCroppedImage;
rectPartOfOriginalImage.Left = iLeftEdgeOfCroppedImage;
rectPartOfOriginalImage.Bottom = iBottomEdgeOfCroppedImage;
rectPartOfOriginalImage.Right = iRightEdgeOfCroppedImage;
bmpPartOfImage->Width = rectPartOfOriginalImage.Right - rectPartOfOriginalImage.Left;
bmpPartOfImage->Height = rectPartOfOriginalImage.Bottom - rectPartOfOriginalImage.Top;
rectNewImage.Top = 0;
rectNewImage.Left = 0;
rectNewImage.Bottom = bmpCroppedImage->Height;
rectNewImage.right = bmpCroppedImage->Width;
bmpPartOfImage->Canvas->CopyRect(rectNewImage, bmpOriginalImage->Canvas, rectPartOfOriginalImage);
delete bmpOriginalImage;
delete bmpPartOfImage;