HomeUser Control Panel (unavailable in archive)ForumsTutorialsArt GalleryResourcesMaps

Help with Images

05-23-2007, 12:42 PM#1
MindWorX
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?



Collapse 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
blu_da_noob
http://www.wc3campaigns.net/showthread.php?t=81637
05-23-2007, 02:53 PM#3
MindWorX
Quote:
Originally Posted by blu_da_noob
Thanks.
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
Ammorth
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
MindWorX
Quote:
Originally Posted by Ammorth
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.
Well, got it working, with blp format, just decrease the compression to the lowest.

EDIT:
Even tho, i noticed the size isn't exactly great with no compression, so keeping it as tga, allows fast edits too.