Jump to content

offset/padding with graphic.generateTexture()


mamwalter
 Share

Recommended Posts

i'm wondering why if i draw a red rectangle with graphic.drawRect(x,y,w,h) for example and then generate a texture from it with graphic.generateTexture() and apply the texture on a simple image
the texture will have a small offset (~10px padding), i mean the x and y of the image will not be exactly the left top corner of the red rectangle?

 

 

Link to comment
Share on other sites

  • 3 months later...
  • 8 months later...
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...