'**SUMMARY**
Draws the minimum bounding rectangle for the blob. The minimum bounding rectangle is the smallest
rotated rectangle that can enclose the blob.
**PARAMETERS**
* *color* - The color to render the blob\'s box.
* *alpha* - The alpha value of the rendered blob 0 = transparent 255 = opaque.
* *width* - The width of the drawn blob in pixels
* *layer* - If layer is not None, the blob is rendered to the layer versus the source image.
**RETURNS**
Returns none, this operation works on the supplied layer or the source image.
**EXAMPLE**
>>> img = Image("lenna")
>>> blobs = img.findBlobs()
>>> for b in blobs:
>>>      b.drawMinRect(color=Color.RED, width=-1,alpha=128)
>>> img.show()'

def drawMinRect(self, layer=None, color=Color.DEFAULT, width=1, alpha=128):

    if (layer is None):
        layer = self.image.dl()
    (tl, tr, bl, br) = self.minRect()
    layer.line(tl, tr, color, width=width, alpha=alpha, antialias=False)
    layer.line(bl, br, color, width=width, alpha=alpha, antialias=False)
    layer.line(tl, bl, color, width=width, alpha=alpha, antialias=False)
    layer.line(tr, br, color, width=width, alpha=alpha, antialias=False)
