Get image content rectangle without margins

For images with uniformly colored background surrounding a content, the GcBitmap.GetContentRect() method allows us to find the rectangular area occupied by the content without margins. In this sample we render the image of a goldfish on a white background, and then draw a red border around the goldfish as found by the GetContentRect() method.