Skip to content
Jean-Philippe Bruyère edited this page Oct 26, 2021 · 3 revisions

Base widget to display an image. Accepts bitmaps and SVGs.

namespace: Crow

Inheritance Hierarchy

  • Image

Syntax

public class Image : Scalable

Constructors

prototype description
Image (Interface iface) Initializes a new instance of the Crow.Image class from code

Properties

name description
KeepProportions If image is scaled, proportions will be preserved.
Opacity Opacity parameter for the image
Path Image file path, may be on disk or embedded. Accepts bitmaps or SVG drawings.
Picture Object holding the image data once loaded, may be used directely to pupulate this control without specifying a path.
Scaled If false, original size will be kept in any case.
SvgSub Used only for svg images, repaint only node named referenced in SvgSub. If null, all the svg is rendered

Methods

prototype description
void LoadImage(string path) __
int measureRawSize(LayoutingType lt) return size of content + margins

Events

name description
Clone this wiki locally