PC SOFT

WINDEVWEBDEV AND WINDEV MOBILE
ONLINE HELP

Home | Sign in | English UK
New WINDEV, WEBDEV, WINDEV Mobile 24 feature!
WINDEV
WindowsLinuxUniversal Windows 10 AppJavaReports and QueriesUser code (UMC)
WEBDEV
WindowsLinuxPHPWEBDEV - Browser code
WINDEV Mobile
AndroidAndroid Widget iPhone/iPadApple WatchUniversal Windows 10 AppWindows Mobile
Others
Stored procedures
Draws a border in an Image variable.
Example
// Draw a rectangle with blue borders, green background and rounded corners
// in an Image variable
MyImage is Image = "Test.gif"
Rect is Rectangle
Rect..X = 10
Rect..Y = 15
Rect..Width = 100
Rect..Height = 150
BorderStyle is Border
BorderStyle..Color = LightBlue
BorderStyle..Round = 30
BorderStyle..Thickness = 1
BackgroundStyle is Background
BackgroundStyle..Color = LightGreen
MyImage.DrawBorder(Rect, BorderStyle, BackgroundStyle)
IMG_MyDrawing = MyImage
 
Syntax
<Image variable>.DrawBorder(<Border> [, <Border style> [, <Background style>]])
<Image variable>: Image variable
Name of the Image variable to use.
<Border>: Rectangle variable
Name of the Rectangle variable that specifies the limits of the border to draw.
<Border style>: Optional Border variable
Name of Border variable that describes the style of the border to draw.
If this parameter is not specified or if the ..Color, ..Thickness and ..Line properties of the Border type are undefined, the information of the current style (defined by <Image variable>.Pen) are used. if <Image variable>.Pen was not used: :
  • Border color: corresponds to the background color of the rectangle.
  • Thickness: 1
  • Line: corresponds to the LineSolid constant.
<Background style>: Optional Background variable
Name of the Background variable describing the marker to display.
If this parameter is not specified, the information of the current brush is used.
Component : wd240pnt.dll
Minimum version required
  • Version 24
This page is also available for…
Comments
Click [Add] to post a comment