ONLINE HELP
 WINDEVWEBDEV AND WINDEV MOBILE

Help / WLanguage / WLanguage functions / Controls, pages and windows / Diagram editor functions
WINDEV
WindowsLinuxUniversal Windows 10 AppJavaReports and QueriesUser code (UMC)
WEBDEV
WindowsLinuxPHPWEBDEV - Browser code
WINDEV Mobile
AndroidAndroid Widget iPhone/iPadIOS WidgetApple WatchMac CatalystUniversal Windows 10 App
Others
Stored procedures
Creates an image from a shape in a diagram (the shape can be displayed or not in the diagram). This function can be used to create a thumbnail of a shape, for example.
Example
// Display the preview of a shape
MyShape is diagRectangle
MyShape.Width = 320
MyShape.Height = 200
MyImage is Image
MyImage = DiagramShapeToImage(MyShape, 64, 64, 8)
IMG_Preview = MyImage
Syntax
<Result> = DiagramShapeToImage(<Shape> , <Width> , <Height> [, <Margin>])
<Result>: Image variable
Image variable that corresponds to the desired shape.
<Shape>: diagShape variable
Name of the diagShape variable (or one of its derivatives) to be used. You can use the following variables:
<Width>: Real
Total width (in pixels) of the image to be created.
<Height>: Real
Total height (in pixels) of the image to be created.
<Margin>: Optional real
Size of the frame around the shape (in pixels)
Component: wd290mdl.dll
Minimum version required
  • Version 27
This page is also available for…
Comments
Click [Add] to post a comment

Last update: 05/23/2023

Send a report | Local help