Jump to content

Recommended Posts

Posted

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
Posted

Texture::Create looks interesting, I'll look into it some more tonight and see what I can come up with. I could also see uses for progress bars that are made from images not rectangles.

 

Thanks

trindieprod.png?dl=0spacer.png?dl=0steam-icon.png?dl=0twitter-icon.png?dl=0spacer.png?dl=0
Posted

See GraphicsDriver::TileImage() and bear in mind that you are using unofficial features. ;)

My job is to make tools you love, with the features you want, and performance you can't live without.

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.

×
×
  • Create New...