DImage Button Help!

How do I make it so it is like a PNG.

Is there a certain color that is recognized as transparent in gmod? Or can I tell it to remove a certain color?

If there is any other way to making part of an image transparent please tell me.

(before flaming me for not using the search feature, I did, but I didn’t find anything usefull.)

Alright. DImage:SetImage() only accepts a material.

You should read up on making textures for the source engine. What you need to put in there is a vmt that references a vtf. It’s dumb, I know.

If you have Photoshop, there’s some tools out there that let you export to VTF. From there, you can make a VMT for your texture.

The Valve Developer Wiki is your best bet.

Weird, i thought i responded to this.

DImage requires a texture, it will not except common image files.

You’ll have to create a texture for Source and use it with DImage in Garry’s Mod.

Ah thanks guys!

request for lock… managed to fix it!

[editline]22nd January 2012[/editline]

Check it out by the way :slight_smile:

http://www.facepunch.com/threads/1157561?highlight=