![]() |
TDrawingPanel.setTransparency()
Well I recently read that TDrawingPanel works serverside, and this is pretty much the only reason why I wouldn't have an in-game uploading option.
Possible usage: TDrawingPanel.setTransparency(red, green, blue) |
What exactly is your suggestion (making all pixels of a specific color transparent ?)
|
Quote:
In theory I would use it like so.. This is serverside usage PHP Code:
TDrawingPanel.getPixelRGB(x, y); - returns {red, green, blue} This wouldn't hurt either.. TDrawingPanel.isimgpixeltransparent(x, y) - returns boolean ( like the scripted clientside function ) I'd use this functionality to make it easier for players to create their own heads, bodies, shields, other player content, and have it uploaded in-game versus emailing, or other systems. Typically most newbies usually just open the graphic in paint, and submit the BMP's. Provided they will still have to upload them in the right format but setting transparencies can be a difficult task. |
Quote:
|
Quote:
Clientside: getimgpixel(str, int, int) - returns object I could use that and some wild scripting but.. it'd be alot easier if that functionality was available in serverside TDrawingPanel. |
Quote:
PHP Code:
PHP Code:
|
Quote:
|
Ohh, right. I completely forgot what the topic actually was about. Sorry about that, heh.
|
| All times are GMT +2. The time now is 08:40 AM. |
Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2026, vBulletin Solutions Inc.
Copyright (C) 1998-2019 Toonslab All Rights Reserved.