|
|
|
|
|
DiagramShapeToImage (Function) In french: DiagrammeFormeVersImage 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. // 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)
This page is also available for…
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|