CornerBitmap Method
The CornerBitmap method changes the bitmap to display an anti-aliased corner curve with the specified border width, border color, interior, and exterior.
If the BitmapObject is attached to a FormField or a stored TaggedValue Item, using this in your program during development may change your frame's source definition. See BitmapObject Attributes and Methods Affecting the Frame Source (see
BitmapObject Class).
This method has the following syntax:
integer = BitmapObject.CornerBitmap(corner = integer, radius = integer
[, borderwidth = integer][, bordercolor = integer]
[, border3dcolor = integer][, interior = BitmapObject]
[, exterior = BitmapObject][, backcolor = integer])
This method has the following parameters:
corner
(Required) Specifies which corner is to be drawn. Valid values include:
AP_NONE (draw all corners)
AP_TOPLEFT
AP_TOPRIGHT
AP_BOTTOMLEFT
AP_BOTTOMRIGHT
radius
(Required) Specifies the radius, in pixels, of the virtual circle of which the corner is a quadrant. The maximum allowed radius is 255 pixels.
borderwidth
Specifies the thickness of the border, in pixels.
Default: 1
bordercolor
Specifies the RGB color of the border.
It is unlikely that any corner pixel will actually be this exact color, because the corner pixels are anti-aliased (color-merged with the background) to display a smooth curve effect.
Default: black – RGB(0,0,0)
border3dcolor
If set, specifies the RGB color of the opposing border line in a 3D border.
The 3D border uses a one-pixel line of the specified bordercolor for the left and top outer border, and a one-pixel line of the specified border3dcolor for the right and bottom outer border. The colors are reversed for the inner border.
interior
Specifies the contents of the inner area of the corner as a bitmap object. The inner edge of the curve will anti-alias against this bitmap.
Default: the corresponding corner area of the bitmap being cornered
exterior
Specifies the contents of the outer area of the corner as a bitmap object. The outer edge of the curve will anti-alias against this bitmap.
Default: a bitmap uniformly colored to the specified backcolor
backcolor
Specifies the color to paint the exterior bitmap, if an exterior bitmap was not provided.
Typically this will be one of the standard transparency colors, enabling a cornered bitmap with transparent, anti-aliased corners to be created for display on any background.
Default: white – RGB(255,255,255)
This method returns the BitmapObject itself, modified to a cornered appearance. The BitmapObject's ErrorStatus is set to any error code.
Last modified date: 12/20/2023