Maccer. Posted November 29, 2009 Share Posted November 29, 2009 Does anyone know how to create outlines for those dxDrawText's? You know, to make it look like sa-mp's text draws? I've seen it on some servers, but I don't know how to make it. I'm sure there's some math involved though. This effect is also known as stroke I think. Link to comment
robhol Posted November 29, 2009 Share Posted November 29, 2009 Talidan's TextLib supports stroke. https://forum.multitheftauto.com/viewtop ... 08&t=24262 I hope you have a str- wait, no, that's not right. Link to comment
DiSaMe Posted November 29, 2009 Share Posted November 29, 2009 dxDrawText("a",100-1,100-1,100-1,100-1,tocolor(0,0,0,255)) dxDrawText("a",100+1,100-1,100+1,100-1,tocolor(0,0,0,255)) dxDrawText("a",100-1,100+1,100-1,100+1,tocolor(0,0,0,255)) dxDrawText("a",100+1,100+1,100+1,100+1,tocolor(0,0,0,255)) dxDrawText("a",100-1,100,100-1,100,tocolor(0,0,0,255)) dxDrawText("a",100+1,100,100+1,100,tocolor(0,0,0,255)) dxDrawText("a",100,100-1,100,100-1,tocolor(0,0,0,255)) dxDrawText("a",100,100+1,100,100+1,tocolor(0,0,0,255)) dxDrawText("a",100,100,100,100,tocolor(255,255,255,255)) This draws white "a" with a black 1 pixel outline. Link to comment
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now