<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://wiki.multitheftauto.com/wiki/DgsMaskGetTexture?action=history&amp;feed=atom</id>
	<title>DgsMaskGetTexture - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://wiki.multitheftauto.com/wiki/DgsMaskGetTexture?action=history&amp;feed=atom"/>
	<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=DgsMaskGetTexture&amp;action=history"/>
	<updated>2026-04-04T14:49:28Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.39.3</generator>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=DgsMaskGetTexture&amp;diff=66442&amp;oldid=prev</id>
		<title>Thisdp: Created page with &quot;{{client function}} This function gets the texture that is used as source texture of dgs mask.  ==Syntax== &lt;syntaxhighlight lang=&quot;lua&quot;&gt; element dgsMaskGetTexture( element mask...&quot;</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=DgsMaskGetTexture&amp;diff=66442&amp;oldid=prev"/>
		<updated>2020-05-06T13:15:09Z</updated>

		<summary type="html">&lt;p&gt;Created page with &amp;quot;{{client function}} This function gets the texture that is used as source texture of dgs mask.  ==Syntax== &amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt; element dgsMaskGetTexture( element mask...&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;{{client function}}&lt;br /&gt;
This function gets the texture that is used as source texture of dgs mask.&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 dgsMaskGetTexture( element mask )&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Required Arguments===&lt;br /&gt;
*'''mask''': The dgs mask you want to check.&lt;br /&gt;
&lt;br /&gt;
===Returns===&lt;br /&gt;
Returns a texture if successful, ''false'' otherwise.&lt;br /&gt;
&lt;br /&gt;
==Example==&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 sourceTex = dxCreateTexture(&amp;quot;tex1.png&amp;quot;)  -- Your Texture&lt;br /&gt;
local maskTex = dxCreateTexture(&amp;quot;tex2.png&amp;quot;)  -- Your Mask ( You'd better use black&amp;amp;white texture )&lt;br /&gt;
local mask = DGS:dgsCreateMask(sourceTex,maskTex)&lt;br /&gt;
local image = DGS:dgsCreateImage(300,300,200,200,mask,false)&lt;br /&gt;
if DGS:dgsMaskGetTexture(mask) == sourceTex then&lt;br /&gt;
	outputChatBox(&amp;quot;Get Source Texture&amp;quot;)&lt;br /&gt;
end&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>Thisdp</name></author>
	</entry>
</feed>