Jump to content

[HELP]dxDrawImageSection


Recommended Posts

Why the corners look like this?
all corners is same

Draw Function:

function dxDrawRoundedRectangle(x,y,w,h,color,postgui)
local ancho = 0.03*sY/3

dxDrawImageSection(x,y,ancho,ancho,0,0,32,32, corner,0,0,0,color,postgui)--left top
dxDrawRectangle(x+ancho,y,w-(ancho)*2,ancho,color,postgui)
dxDrawImageSection(x+(w-ancho),y,ancho,ancho,32,0,-32,-32, corner,0,0,0,color,postgui)--right top

dxDrawRectangle(x,y+ancho,w,h-ancho*2,color,postgui)

dxDrawImageSection(x,y+(h-ancho),ancho,ancho,0,32,-32,-32, corner,0,0,0,color,postgui)--left bottom
dxDrawRectangle(x+ancho,y+(h-ancho),w-(ancho)*2,ancho,color,postgui)
dxDrawImageSection(x+(w-ancho),y+(h-ancho),ancho,ancho,32,32,-32,-32, corner,0,0,0,color,postgui)--right bottom
end

IMG CORNER:

https://cdn.discordapp.com/attachments/470683175090257930/701206421039218739/rec.png

-------------------------------------------------------

unknown.png
unknown.png

Link to post

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    No registered users viewing this page.

×
×
  • Create New...