Core Function GUIPictureBox
From Sputnik Wiki
				
				
				(Difference between revisions)
				
																
				
				
								
				 (Created page with "<pre> GUIPictureBox( <picturebox> ) </pre>  === Description ===  Properties & Functions specifically for PictureBox  === Parameters ===  ==== picturebox ====  The PictureBox GUI ...")  | 
		m (1 revision)  | 
		||
| (4 intermediate revisions by one user not shown) | |||
| Line 14: | Line 14: | ||
=== Functions ===  | === Functions ===  | ||
| + | |||
| + | ==== Clear ====  | ||
| + | |||
| + | From any image from the PictureBox  | ||
| + | |||
| + | <syntaxhighlight lang="sputnik">  | ||
| + | GUIPictureBox($PB, "Clear");  | ||
| + | </syntaxhighlight>  | ||
==== Load ====  | ==== Load ====  | ||
| Line 21: | Line 29: | ||
<syntaxhighlight lang="sputnik">  | <syntaxhighlight lang="sputnik">  | ||
GUIPictureBox($PB, "Load", "MyImage.jpg");  | GUIPictureBox($PB, "Load", "MyImage.jpg");  | ||
| + | </syntaxhighlight>  | ||
| + | |||
| + | Load an image into the PictureBox by copying the image of another PictureBox  | ||
| + | |||
| + | <syntaxhighlight lang="sputnik">  | ||
| + | GUIPictureBox($PB, "Load", $OtherPB);  | ||
| + | </syntaxhighlight>  | ||
| + | |||
| + | Load an image into the PictureBox that came from a DotNet % operator  | ||
| + | |||
| + | <syntaxhighlight lang="sputnik">  | ||
| + | GUIPictureBox($PB, "Load", $PBNet);  | ||
| + | </syntaxhighlight>  | ||
| + | |||
| + | Load an image into the PictureBox that came from any .NET Image object  | ||
| + | |||
| + | <syntaxhighlight lang="sputnik">  | ||
| + | GUIPictureBox($PB, "Load", $Image);  | ||
</syntaxhighlight>  | </syntaxhighlight>  | ||
Latest revision as of 12:37, 14 June 2015
GUIPictureBox( <picturebox> )
Contents | 
Description
Properties & Functions specifically for PictureBox
Parameters
picturebox
The PictureBox GUI object to use.
Functions
Clear
From any image from the PictureBox
GUIPictureBox($PB, "Clear");
Load
Load an image into the PictureBox
GUIPictureBox($PB, "Load", "MyImage.jpg");
Load an image into the PictureBox by copying the image of another PictureBox
GUIPictureBox($PB, "Load", $OtherPB);
Load an image into the PictureBox that came from a DotNet % operator
GUIPictureBox($PB, "Load", $PBNet);
Load an image into the PictureBox that came from any .NET Image object
GUIPictureBox($PB, "Load", $Image);
You can also load the image from a Binary Variable like
GUIPictureBox($PB, "Load", $binary);
Example
Go see GUICreate( "PictureBox" ) for example.