|
||
|
|
#1 (permalink) |
|
Join Date: Dec 2003
Posts: 56
|
Hi!
I got a little probelm with the Hue class. I tried the ApplyTo function, but it only gives me transparent images.........when i set the onlyHueGrayPixels to false i got the Tile but it has some transparent pixels and the stadrt color......can someone help me with this? Oh, and can some one give me the source for the sdk......so i can find out myself things like these ^^ Thx.... Oh.....i forgot some code to show hoe i use it : Code:
Hue tmp = new Hue( 5 ); // Crete Hue Bitmap tmpBmp = Ultima.Art.GetStatic( 1433 ); // Get the static Tile Image tmp.ApplyTo( tmpBmp, false ); // And apply it PictureBox p = new PictureBox(); p.Image = tmp;
__________________
Error! reality.sys is corrupt! Smash head on keyboard to reset universe. |
|
|
|
|
|
#2 (permalink) |
|
Forum Expert
|
You probably don't want to be creating a new picture box each tiem to display the art. It would probably be better to assign the bitmap to the .image property of an already existing picture box on the form. Don't forget to .dispose of any bitmaps you create, or else the garbage collage will slow you down.
__________________
----------------------- If your response will contribute nothing to this discussion except to insult me, or someone else in this thread, please do not post. I am refering to specific individuals. You know who you are. |
|
|
|
|
|
#3 (permalink) |
|
Join Date: Dec 2003
Posts: 56
|
Hi !
it was only to show how i use this.....i know the peolple who write "u can not see something, because u have not assigned the image to a picturebox".....ok, it was an poor example...but the main quest ist why i get transparent or....now i gut only the tile in black...not in any hue.....i create the hue with an binaryreader wich file the hue.mul is......but only black tiles.....HELP!!!!!
__________________
Error! reality.sys is corrupt! Smash head on keyboard to reset universe. |
|
|
|
|
|
#4 (permalink) |
|
Join Date: Jan 2003
Posts: 48
|
Greetings all,
I'm not a programer or am I a scripter but just a fan of TNDKillian's House Builder Tool. I know how difficult it is to get a quality responds and/or helps/comments/tips on the forum. Where would player run shards would be if no one share ideas and helps? Well, I wish I can help but like I've said, I'm just a geek that loves designing UO buildings and houses. ![]() |
|
|
|
|
|
#5 (permalink) |
|
Join Date: Dec 2003
Posts: 56
|
Oh that suxx realy.....where is the person who create the SDK??????? And where are all the developers for RunUO.......
I only want to know how it works???? now i got the code from the SDK....but something like comments the person never have learnd......this suxx realy
__________________
Error! reality.sys is corrupt! Smash head on keyboard to reset universe. |
|
|
|
|
|
#6 (permalink) |
|
Join Date: Dec 2003
Posts: 56
|
Ok, stop this thread i am an idiot......after hours of testing i found out how it works.....
Code:
Hue h = Hues.GetHue ( 0x1 ); h.ApplyTo( Btimap, false ); ![]() Bye the idiot Killian ![]()
__________________
Error! reality.sys is corrupt! Smash head on keyboard to reset universe. |
|
|
|
![]() |
| Bookmarks |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| Display Modes | |
|
|