ImageEn, unit iexHelperFunctions

TIEBitmap.FillWithShape

TIEBitmap.FillWithShape


Declaration


procedure FillWithShape(Shape: TIEShape;
                        Width, Height: Integer;
                        BorderColor: TColor;
                        BorderWidth: Integer;
                        FillColor: TColor;
                        AlphaFill: Boolean = False);


Description


Draws a TIEShape to the bitmap.
Width/Height are the size to draw the shape (Bitmap will be sized to this too).
BorderColor, BorderWidth and FillColor specify the style (pass -1 for colors to use a random color).
AlphaFill = False gives the image a white background. True uses an alpha background.


Examples


// Fill bitmap with a heart shape
bmp.FillWithShape( iesHeart, 200, 200, clNone, 0, clRed, True );