Go Back   RunUO - Ultima Online Emulation > RunUO > Utility Support > Ultima SDK

Ultima SDK Support for the Ultima SDK.

Reply
 
Thread Tools Display Modes
Old 03-30-2004, 06:44 PM   #1 (permalink)
 
Join Date: Dec 2003
Posts: 56
Default Probelm with Hue

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.
TNDKillian is offline   Reply With Quote
Old 04-01-2004, 11:11 AM   #2 (permalink)
Forum Expert
 
Bradley's Avatar
 
Join Date: Oct 2002
Location: Hummelstown, PA
Age: 29
Posts: 485
Send a message via ICQ to Bradley Send a message via AIM to Bradley Send a message via MSN to Bradley Send a message via Yahoo to Bradley
Default

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.
Bradley is offline   Reply With Quote
Old 04-01-2004, 03:08 PM   #3 (permalink)
 
Join Date: Dec 2003
Posts: 56
Default

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.
TNDKillian is offline   Reply With Quote
Old 04-01-2004, 06:36 PM   #4 (permalink)
 
Join Date: Jan 2003
Posts: 48
Default

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.
lorddeception is offline   Reply With Quote
Old 04-01-2004, 11:16 PM   #5 (permalink)
 
Join Date: Dec 2003
Posts: 56
Default

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.
TNDKillian is offline   Reply With Quote
Old 04-02-2004, 12:36 AM   #6 (permalink)
 
Join Date: Dec 2003
Posts: 56
Default Ok OK

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 );
Thats it......ok.....i see i makeing trouble for nothing.....so sorry for this

Bye the idiot Killian
__________________
Error!
reality.sys is corrupt! Smash head on keyboard to reset universe.
TNDKillian is offline   Reply With Quote
Old 04-02-2004, 02:45 AM   #7 (permalink)
 
Join Date: Jan 2003
Posts: 48
Default

No you're not. I believe this is what the forum is for?

Btw. Great job!
lorddeception is offline   Reply With Quote
Reply

Bookmarks


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off



Powered by vBulletin® Version 3.7.0
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.2.0 RC5