Jump to content

DrawImage tiled


tjheldna
 Share

Recommended Posts

I don't think you can but it won't hurt to ask. Is it possible to tile an image using DrawImage?

 

I've created a speech dialog box in which I want a header image, footer image and the body image which the height is variable depending on how much text is displayed.

 

Obviously I could create a series of smaller body images to match the size of the dialog windos text, but if the above was possible it would be a lot nicer.

 

Also is it possible to clip a drawn image? I remember doing something like this in 2.5 with buffers, but not sure how to do it in 3.1.

trindieprod.png?dl=0spacer.png?dl=0steam-icon.png?dl=0twitter-icon.png?dl=0spacer.png?dl=0
Link to comment
Share on other sites

I hope there's an easier way but the only thing I can think of is creating your own texture on the fly

http://www.leadwerks.com/werkspace/page/documentation/_/command-reference/texture/texturecreate-r340

 

There's also SetShader but I don't know if that's helpful in any way

http://www.leadwerks.com/werkspace/page/documentation/_/command-reference/context/contextsetshader-r729

  • Upvote 1
Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

 Share

×
×
  • Create New...