|
|
#1 |
|
User
|
Well, purpose of this library:
- add the IMAGE_TYPEs Blizzard forgot to add. - provide an object oriented wrapper for images + some additional features, like reading certain properties of the image Images are an interesting type. I recently published a documentation of that type, which is also the basis for large parts of this script. This library uses vJass (JassHelper 0.9.H.0 and up) and ARGB. ImageUtils:EDIT 1: Updated ImageUtils to incorporate the result of my research. Attached a map demonstrating use of ImageUtils in the context of a TextSplat library. EDIT 2: Added a documentation. If you still need something explained, feel free to ask. EDIT 3: Made the link to my research more visible. EDIT 4: Fixed two bugs. EDIT 5: Now supports wrapping to the ground. Fixed documentation errors. EDIT 6: Updated with workarounds to the newfound bug. As a result, CreateImageEx was added. Refer to the documentation for more information. EDIT 7: Deprecated CreateImageEx in favour of NewImage/ReleaseImage. Now also tries to work around the most common errors with images (and reports those to the user). EDIT 8: Fixed imagex instances causing errors. Last edited by Deaod : 02-27-2010 at 10:37 PM. |
|
|
|
| Sponsored Links - Login to hide this ad! |
|
|
|
|
#2 |
|
Obscurity, the Art
|
JASS: JASS:Oh, and put the "ImageUtils" library on top of the example, and have both of them use [hiddenjass][/hiddenjass] tags around them. You will also need better documentation. By a lot. Also, I am calling forth the necessity of a demo map for this library. I refuse to let it get approved without one that shows all of the working image types, how they stack on each other, and gives some examples of how they work when you change their values and such. Last edited by Rising_Dusk : 09-18-2009 at 06:35 PM. |
|
|
|
|
|
#3 |
|
User
|
Updated.
__________________ |
|
|
|
|
|
#4 | |
|
Obscurity, the Art
|
Quote:
JASS:// Credits: // - Vexorian for ARGB and JassHelper // - Pipedream for grimoire // - MindWorX and Pitzermike for JassNewGenPack // - SFilip for TESH |
|
|
|
|
|
|
#6 |
|
User
|
Is that enough documentation now?
__________________ |
|
|
|
|
|
#8 |
|
User
|
Link was already there, but anyway, updated.
__________________ |
|
|
|
|
|
#10 |
|
User
|
updated.
__________________ |
|
|
|
|
|
#11 |
|
User
|
Aaaaand, updated.
__________________ |
|
|
|
|
|
#12 |
|
User
Join Date: Dec 2006
Posts: 21
|
It's annoying that the position is always the lower left corner of the image. You can fix that 'flaw' with simple math. Could you please do that?
|
|
|
|
|
|
#13 |
|
User
|
I wont "fix" that, mostly because i already have two other libraries depending on it.
__________________Also, its rather trivial to fix this on your side (or even incorporate it). Edit: That aside, where would you want me to move the origin to? Last edited by Deaod : 11-26-2009 at 02:43 PM. |
|
|
|
|
|
#14 |
|
User
Join Date: Feb 2009
Posts: 203
![]()
|
It could be in the middle of the image, so when modifying its size over time, you dont have to move your image alla time.
__________________See for example those images that appear in the ground when you use burrow/unborrow spell with those undead nerubian units. Last edited by Viikuna- : 11-26-2009 at 02:52 PM. |
|
|
|
![]() |
| Thread Tools | Search this Thread |
|
|
|
Donate |