<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://wiki.multitheftauto.com/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=Gaimo</id>
	<title>Multi Theft Auto: Wiki - User contributions [en]</title>
	<link rel="self" type="application/atom+xml" href="https://wiki.multitheftauto.com/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=Gaimo"/>
	<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/wiki/Special:Contributions/Gaimo"/>
	<updated>2026-04-29T10:14:26Z</updated>
	<subtitle>User contributions</subtitle>
	<generator>MediaWiki 1.39.3</generator>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=DgsCreateBlurBox&amp;diff=68335</id>
		<title>DgsCreateBlurBox</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=DgsCreateBlurBox&amp;diff=68335"/>
		<updated>2021-01-18T14:30:36Z</updated>

		<summary type="html">&lt;p&gt;Gaimo: /* Example */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;__NOTOC__ &lt;br /&gt;
{{Client function}}&lt;br /&gt;
&amp;lt;span style=&amp;quot;color:#FF0000;text-shadow:black 0.1em 0.1em 0.6em;&amp;quot;&amp;gt;&amp;gt;&amp;gt;&amp;gt;Warning: This feature requires pixel shader model 2_a&amp;lt;&amp;lt;&amp;lt;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
This function creates a blur box.&lt;br /&gt;
&lt;br /&gt;
==Syntax== &lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
element dgsCreateBlurBox( )&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt; &lt;br /&gt;
&lt;br /&gt;
[[Image:DGS.png|300px|thumb|Example Rounded Rectangle]]&lt;br /&gt;
&lt;br /&gt;
===Returns===&lt;br /&gt;
Returns a dgs-dxblurbox element (DGS Plugin Type)[ shader (Element Type) ] if succeed, ''false'' otherwise&lt;br /&gt;
&lt;br /&gt;
==Example== &lt;br /&gt;
This example shows creating a blur box on image&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
DGS = exports.dgs --get exported functions from dgs&lt;br /&gt;
&lt;br /&gt;
local blurbox = DGS:dgsCreateBlurBox(600, 500) --Blur Box&lt;br /&gt;
local blurArea = DGS:dgsCreateImage(200,200,600,500,blurbox,false) --Blur Box Renderer&lt;br /&gt;
local window = DGS:dgsCreateWindow(200,2000,600,500,&amp;quot;Test Window&amp;quot;,false) --Window&lt;br /&gt;
DGS;dgsAttachToAutoDestroy(blurbox,window) --Destroy the blurbox with window&lt;br /&gt;
DGS;dgsAttachToAutoDestroy(blurArea,window) --Destroy the blurArea with window&lt;br /&gt;
DGS:dgsAttachElements(blurArea,window,0,0,1,1,true,true) --Attach Blur Box Renderer to Window&lt;br /&gt;
DGS:dgsSetLayer(blurArea,&amp;quot;bottom&amp;quot;) --Make sure the blurArea is always under window&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
This example adds a blurbox on the full screen&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
loadstring(exports.dgs:dgsImportFunction())()-- load functions&lt;br /&gt;
&lt;br /&gt;
local sW, sH = guiGetScreenSize() -- get the screen size&lt;br /&gt;
local blurbox = dgsCreateBlurBox(sW, sH) -- Create a blur Box&lt;br /&gt;
local blurArea = dgsCreateImage(0,0,1,1,blurbox,true) -- --Blur Box Renderer&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==See Also==&lt;br /&gt;
{{DGSFUNCTIONS}}&lt;/div&gt;</summary>
		<author><name>Gaimo</name></author>
	</entry>
</feed>