AddBorder method (Main Control)

C++ Builder example

Delphi example

 

Builder Syntax

int AddBorder (int nLeftThickness, int nTopThickness, int nRightThickness, int nBottomThickness, int nLocation, int nStyle, int nEffectStyle, TBitmapHandle TileBitmap, int nGradientStyle, unsigned crGradientStart, unsigned crGradientEnd, int nCurveIntensity, bool bSoftCurve, bool bShadow, int nShadowSize, int nShadowDirection, bool bBumpyShadow);

Delphi Syntax

Function AddBorder (nLeftThickness: Integer; nTopThickness: Integer; nRightThickness: Integer; nBottomThickness: Integer; nLocation: integer; nStyle: Integer; nEffectStyle: Integer; TileBitmap: TBITMAPHANDLE; nGradientStyle: integer; crGradientStart: TColorRef; crGradientEnd: TColorRef; nCurveIntensity: Integer; bSoftCurve: Boolean; bShadow: Boolean; nShadowSize: Integer; nShadowDirection: Integer; bBumpyShadow: Boolean): Integer;

Overview

Refer to Combining Images.

Remarks

(DigitalPaint only) Adds a border to the bitmap. The border is specified by the method's parameters.

This method does not support 12 and 16-bit grayscale and 48 and 64-bit color images. If the image is 12 and 16-bit grayscale and 48 and 64-bit color, the method will not return an error.

This method does not support signed data images. It returns the error code ERROR_SIGNED_DATA_NOT_SUPPORTED if a signed data image is passed to this method.

See Also

Elements:

AddFrame method

Topics:

Image Processing