<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en" dir="ltr">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<link rel="stylesheet" href="../../../../style.css">
<title>
Gambas Documentation - Picture[]
 (gb.gtk)</title>
</head>
<table class="none" width="100%" cellpadding="0" cellspacing="0" border="0">
<tr><td align="left">
<font size="-1">
<a href="../../../../help+en"><img class="flag" alt="Home" border="0" src="../../../../img/lang/en.png" align="center"></a>&nbsp;
<a href="../picture+en">Up</a>&nbsp;
<a href="width+en">Previous</a>&nbsp;
<a href="_new+en">Next</a>&nbsp;
</td></tr></table>
<div class="notab">
<h1>
Picture[]
 (gb.gtk)</h1>
<div class="black"><font size="-2"><b>Syntax</b></font></div>
<pre class="syntax"><font color="blue">DIM</font> hPicture <font color="blue">AS</font> <font color="#0080FF"><a href="../picture+en">Picture</a></font>

hPicture <font color="blue">=</font> Picture <font color="blue">[</font> <u>Path</u> <font color="blue">AS</font> <font color="#0080FF">String</font> <font color="blue">]</font></pre>
Returns a <a href="../../gb.qt/picture+en">Picture</a> <a href="../../../def/object+en">object</a> from the internal picture cache.
<p>
If the picture is not present in the cache, it is automatically loaded from the
specified file.
<p>
If <u>Path</u> begins with <tt>&quot;icon:/&quot;</tt>, then it means that you want to get a stock icon.
This icon is get by sending to the array accessor the <a href="../stock+en">Stock</a> class the path without the <tt>&quot;icon:/&quot;</tt> prefix,
and by returning the result.
<p>
<div class="gray"><font size="-2"><b>Example</b></font></div>
<pre class="example">' Put a standard &quot;close&quot; icon inside a button
MyButton.Picture = Picture[&quot;icon:/16/close&quot;]</pre>

</div>
</body>
</html>

