Picture class
| VI Server Class Information | |
|---|---|
| Return to VI Server Class Hierarchy | |
| Class Name | Picture class |
| Class ID | 15 |
| Scope | Basic Development Environment |
| Class Inheritance |
|
| Class Children | This class has no children. |
| |
This article is a stub. You can help LabVIEW Wiki by expanding it. Please improve this article if you can. |
The Picture class is a class in the VI Server Class Hierarchy, (see also VI Server).
Properties
Show/Hide Picture Properties Table
| Legend | |
|---|---|
| R/W | Readable/Writable Permissions |
| RTE | Available in the Run-Time Engine |
| Basic Development Environment | |
| VI Scripting | |
| Private | |
| Deprecated | |
| Property ID | Short Name (English) | Description | R/W | RTE | ||||||
|---|---|---|---|---|---|---|---|---|---|---|
| 6339805 | Cursor | Gets or sets the cursor you want to use when you move the mouse over a picture control.
This property sets the cursor for all picture controls of that type, including picture controls in other VIs. For example, if you use this property to set the cursor for a 2D picture control, LabVIEW uses that cursor setting for all 2D picture controls as long as LabVIEW is running. After you use this property, consider resetting the value of the property to 0 when the VI stops running. Resetting the value of the property allows you to maintain the default cursor setting for picture controls in other VIs. |
R/W | X | ||||||
| 6339804 | DefVal | Gets or sets the default value of the picture control. | R/W | X | ||||||
| 6339801 | DrawAreaSize | Size of the draw area in terms of width and height in pixels.
|
R/W | X | ||||||
| 6339802 | EraseFirst | Indicates whether to erase picture before drawing: 0-Do not erase, 1-Erase once now, 2-Always erase.
This property is similar to the Erase First item on the shortcut menu of a 2D picture control. |
R/W | X | ||||||
| 633980C | HorizScroll | Shows or hides the horizontal scroll bar for the picture control. | R/W | X | ||||||
| 6339803 | Mouse | Mouse information specified as a cluster of (Mouse Position, Mouse Modifiers). Mouse Position is a cluster of (Vertical, Horizontal) coordinates. Mouse Modifiers is a cluster of (Mouse button pressed?, Shift key down?, Menu key down?, and Option key down?).
Mouse position is relative to the picture control origin.
|
R | X | ||||||
| 6339806 | Origin | Horizontal and vertical coordinates of the point in the picture you want to display in the upper left corner of the picture control or indicator.
Increasing the horizontal coordinate shifts the picture to the left, and increasing the vertical coordinate shifts the picture to the top. You can use this property to display a different portion of a picture in the picture control or indicator. For example, if you wire 100 and 100 to this property, LabVIEW draws the upper left corner of the picture 100 pixels above and 100 pixels to the left of the upper left corner of the control or indicator. If you change the origin and LabVIEW draws part of the picture outside the draw area of the picture control or indicator, you can use the Horizontal Scrollbar Visible and Vertical Scrollbar Visible properties to display scroll bars for the picture control or indicator. As you move the scroll bars of the picture control or indicator, the origin of the picture in the control or indicator changes, and the coordinates returned by this property change.
|
R/W | X | ||||||
| 6339807 | Left | Horizontal coordinate of the point in the picture you want to display in the upper left corner of the picture control or indicator.
This property is an element of the Origin property. |
R/W | X | ||||||
| 6339808 | Top | Vertical coordinate of the point in the picture you want to display in the upper left corner of the picture control or indicator.
This property is an element of the Origin property. |
R/W | X | ||||||
| 6339800 | Value | Value of the picture control. | R/W | X | ||||||
| 633980B | Val(Sgnl) | Sets the value of the control and generates a Value Change event.
This property updates the value of an object similar to the Value property. However, Value (Signaling) also causes LabVIEW to generate an event as if the user had interactively changed the value of the object. National Instruments recommends you use this property only when you rely on LabVIEW generating an event in response to the programmatic value change. |
W | X | ||||||
| 633980D | VertScroll | Shows or hides the vertical scroll bar for the picture control. | R/W | X | ||||||
| 6339809 | ZoomFactor | Factor by which to scale the image in a picture control or indicator.
For example, to decrease the size of the image to 50% of its original size, wire a value of 0.5 to this property. To increase the size of the image to 200% of its original size, wire a value of 2 to this property. The value you wire to this property must be greater than or equal to 0. If you change the zoom factor and LabVIEW draws part of the image outside the draw area of the picture control or indicator, you can use the Horizontal Scrollbar Visible and Vertical Scrollbar Visible properties to display scroll bars for the picture control or indicator. |
R/W | X |
Methods
Show/Hide Picture Methods Table
| Legend | |
|---|---|
| RTE | Available in the Run-Time Engine |
| Basic Development Environment | |
| VI Scripting | |
| Private | |
| Deprecated | |
| Method ID | Short Name (English) | Description | RTE |
|---|---|---|---|
| 6339400 | Export Image | Exports an image of a picture control to the clipboard or disk.
This method is similar to the Export Simplified Image option on the shortcut menu of a picture control. |
X |
Events
No Events for this class.
History
| |
History information is needed. What changes have occurred over previous versions? |
| Version | Change(s) |
|---|---|
| More info to come. |