| 05-23-2007, 12:42 PM | #1 |
Hey, Posting here, since the mIRC channel is unreachable for me atm. I'm working with the image natives atm, but i have a problem. Whenever i use an image, it shows as 1/3 the size i told it to, and the rest of the image is just a strecthed version of the border the image i use have. Anyone know how to fix that? ![]() JASS:local string path = "ReplaceableTextures\\CommandButtons\\BTNSpellShieldAmulet.blp" local real x = 128 local real y = 128 local real z = 0 local real posx = 0 local real posy = 0 local real posz = 0 local real orgx = 0 local real orgy = 0 local real orgz = 0 local integer ityp = 2 local image test = CreateImage(path,x,y,z,posx,posy,posz,orgx,orgy,orgz,ityp) call MessageTimed(USER,30,"Created an test image.") call SetImageRenderAlways(test,true) |
| 05-23-2007, 02:52 PM | #2 |
| 05-23-2007, 02:53 PM | #3 | |
Quote:
I think the search feature is a little broken, cause i did a search for "CreateImage", and it didn't find anything at all. |
| 05-23-2007, 03:04 PM | #4 |
Also, applying a 1px border to a tga image and then converting it to blp will still have this problem (something to do with how blps are converted). You either need a larger border, or stick with tga images. |
| 05-23-2007, 03:19 PM | #5 | |
Quote:
EDIT: Even tho, i noticed the size isn't exactly great with no compression, so keeping it as tga, allows fast edits too. |
