Nevron Open Vision Documentation
Diagram / Diagram DOM / Drawings / Shapes / Shape Elements / Image Block
In This Topic
    Image Block
    In This Topic

    The image block is a shape block that is a direct child of a shape and is used to display a raster or a vector image. As both the image block and the text block inherit from NShapeBlock they have a lot in common, for example they have the same properties related to block transform (PinX, PinY, LocPinX, LocPinY, etc.). For more information about these properties and how to configure shape block transform, check out the Text Block documentation topic.

    The code below shows how to set an image to the image block of a shape:

    Set image to a shape's image block
    Copy Code
    shape.ImageBlock.Image = NImage.FromFileBytes(@"C:\MyImage.png");

    The image block also provides the following properties:

    See Also