Old 27th December 2002, 21:53   #1
rpeterclark
Major Dude
(Reviewer)
 
rpeterclark's Avatar
 
Join Date: Aug 2002
Location: South Florida
Posts: 1,388
RGB-HSL-Gamma Worker

Yet another utility by me to work with gamma values. This one is a bit more graphical. I will not be updating my previous gamma editor in favor of working to improve this one. So here's the screenshot:



Here's a download link:
Download GammaWorker.exe (96KB)

It is written in VB so you may need this:
Visual Basic 6 Runtime

Let me know if you run into any problems. I've already contacted SOOPRcow about bringing some of the functionality of his gamma editor app into this one. I've already got the code to load PNGs (with transparency) but I need his special insight into Winamps gamma algorithms.

Have fun!
rpeterclark is offline   Reply With Quote
Old 27th December 2002, 22:02   #2
The Rhino
Major Dude
 
The Rhino's Avatar
 
Join Date: Nov 2001
Location: Florida
Posts: 1,069
wow that must have required some time
The Rhino is offline   Reply With Quote
Old 27th December 2002, 22:19   #3
rpeterclark
Major Dude
(Reviewer)
 
rpeterclark's Avatar
 
Join Date: Aug 2002
Location: South Florida
Posts: 1,388
If anything, writing this in VB was much easier than what I was doing before. The Windows shell has functions available to convert RGB to HLS and are more accurate than the routines I was using before, and just about everything else is nearly identical code.

Now all I want to do is be able to load up a PNG and see the gamma value effects in realtime. I'm working on it...
rpeterclark is offline   Reply With Quote
Old 27th December 2002, 23:49   #4
SOOPRcow
Senior Member
 
Join Date: Dec 2001
Location: San Diego, CA USA
Posts: 125
Send a message via AIM to SOOPRcow
You contacted me?

David Serrano :: Winamp5 Skining Guru
SOOPRcow is offline   Reply With Quote
Old 27th December 2002, 23:52   #5
rpeterclark
Major Dude
(Reviewer)
 
rpeterclark's Avatar
 
Join Date: Aug 2002
Location: South Florida
Posts: 1,388
Quote:
Originally posted by SOOPRcow
You contacted me?
Through PM. You didn't get it?
rpeterclark is offline   Reply With Quote
Old 27th December 2002, 23:52   #6
SOOPRcow
Senior Member
 
Join Date: Dec 2001
Location: San Diego, CA USA
Posts: 125
Send a message via AIM to SOOPRcow
But yeah, I'm intrested in helping ya

David Serrano :: Winamp5 Skining Guru
SOOPRcow is offline   Reply With Quote
Old 27th December 2002, 23:57   #7
SOOPRcow
Senior Member
 
Join Date: Dec 2001
Location: San Diego, CA USA
Posts: 125
Send a message via AIM to SOOPRcow
I see now

David Serrano :: Winamp5 Skining Guru
SOOPRcow is offline   Reply With Quote
Old 28th December 2002, 00:09   #8
SOOPRcow
Senior Member
 
Join Date: Dec 2001
Location: San Diego, CA USA
Posts: 125
Send a message via AIM to SOOPRcow
There, responded to your Private Message... now I'm off to work! yay

David Serrano :: Winamp5 Skining Guru
SOOPRcow is offline   Reply With Quote
Old 28th December 2002, 00:17   #9
J_Bloggs
Major Dude
 
J_Bloggs's Avatar
 
Join Date: Jan 2002
Posts: 1,778
Hows about a copy button for the RBG and the HGL?

You should make your website down the bottom an actual link.

How about a custom icon, something like this perhaps?
Attached Images
File Type: png possible_icon.png (265 Bytes, 681 views)

¯¯¯¯Joe Bloggs____
¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯
J_Bloggs is offline   Reply With Quote
Old 28th December 2002, 22:26   #10
rpeterclark
Major Dude
(Reviewer)
 
rpeterclark's Avatar
 
Join Date: Aug 2002
Location: South Florida
Posts: 1,388
Exclamation RGB-HSL-Gamma Worker 1.1

Here it is, I think a screenshot says it all:



Here's a download:
Download GammaWorker.zip (111KB) - Zipped Program
Or
Download GammaWorkerSetup.zip (2.5MB) Setup Files - This is larger, but should solve problems for some.

Don't forget you might need the VB Runtime if you don't already have it: Visual Basic 6 Runtime

I'm sure you will all find bugs for me to fix, just post em and I'll take care of it as quickly as possible.

Hope you all enjoy.

Last edited by rpeterclark; 28th December 2002 at 23:16.
rpeterclark is offline   Reply With Quote
Old 28th December 2002, 22:36   #11
hammerhead
The Shark
(Forum King)
 
hammerhead's Avatar
 
Join Date: Jul 2002
Posts: 2,537
Send a message via AIM to hammerhead
I cant seem to run it. MSCOMCTL.OCX it says is missing, even tho I downloaded the visual basic runtime files.
My opinion of this pic is defined in one word. Wow.
-HH
hammerhead is offline   Reply With Quote
Old 28th December 2002, 23:18   #12
rpeterclark
Major Dude
(Reviewer)
 
rpeterclark's Avatar
 
Join Date: Aug 2002
Location: South Florida
Posts: 1,388
Quote:
Originally posted by hammerhead
I cant seem to run it. MSCOMCTL.OCX it says is missing, even tho I downloaded the visual basic runtime files.
My opinion of this pic is defined in one word. Wow.
-HH
Hey Hammerhead, I just editied my previous post so that it now has a link to setup files. Try installing it that way, and hopefully it will fix your problem.
rpeterclark is offline   Reply With Quote
Old 29th December 2002, 00:04   #13
SOOPRcow
Senior Member
 
Join Date: Dec 2001
Location: San Diego, CA USA
Posts: 125
Send a message via AIM to SOOPRcow
F**king awsome man

David Serrano :: Winamp5 Skining Guru
SOOPRcow is offline   Reply With Quote
Old 29th December 2002, 00:06   #14
hammerhead
The Shark
(Forum King)
 
hammerhead's Avatar
 
Join Date: Jul 2002
Posts: 2,537
Send a message via AIM to hammerhead
I absolutely hate windows xp, it can never install anything properly! Well, I'll install it onto my laptop later, and hopefully it'll work because this program is gonna kick ass!
hammerhead is offline   Reply With Quote
Old 29th December 2002, 00:18   #15
rpeterclark
Major Dude
(Reviewer)
 
rpeterclark's Avatar
 
Join Date: Aug 2002
Location: South Florida
Posts: 1,388
Quote:
Originally posted by SOOPRcow
F**king awsome man
Thanks, I could not have made it without your input!
rpeterclark is offline   Reply With Quote
Old 29th December 2002, 00:20   #16
rpeterclark
Major Dude
(Reviewer)
 
rpeterclark's Avatar
 
Join Date: Aug 2002
Location: South Florida
Posts: 1,388
Exclamation Minor Update 1.1.1

I just updated the Zip and Setup files on my server to version 1.1.1. There was a minor bug with the Reset button where it would reset the values, but not the sliders. It's fixed now, so re-download/install if you like.
rpeterclark is offline   Reply With Quote
Old 29th December 2002, 00:31   #17
raydream
Banned
 
Join Date: Jun 2002
Posts: 867
Run-time error 429
ActiveX component can't create object.

this is on windows 2000 SP3, vb runtimes installed etc etc.
raydream is offline   Reply With Quote
Old 29th December 2002, 00:33   #18
rpeterclark
Major Dude
(Reviewer)
 
rpeterclark's Avatar
 
Join Date: Aug 2002
Location: South Florida
Posts: 1,388
Quote:
Originally posted by raydream
Run-time error 429
ActiveX component can't create object.

this is on windows 2000 SP3, vb runtimes installed etc etc.
Is that with the zipped or setup version?
rpeterclark is offline   Reply With Quote
Old 29th December 2002, 00:41   #19
raydream
Banned
 
Join Date: Jun 2002
Posts: 867
thats with both, i took the liberty to check the hex for files that are used, those being

mscomct2.ocx
shlwapi.dll
VBA6.dll
mscomctl.ocx
msvbvm60.dll
comdlg32.dll
shell32.dll (obviously )

with those in windows dir, and with those in the same dir as the executable, still the same error
raydream is offline   Reply With Quote
Old 29th December 2002, 00:58   #20
rpeterclark
Major Dude
(Reviewer)
 
rpeterclark's Avatar
 
Join Date: Aug 2002
Location: South Florida
Posts: 1,388
Hmm, try copying from the installation directory, PNGLib.dll, wa3gamma.dll and zlib.dll to your windows/system(32) folder and see if that fixes it. If so, let me know and I will update the Setup files. Otherwise I will keep looking...
rpeterclark is offline   Reply With Quote
Old 29th December 2002, 01:05   #21
raydream
Banned
 
Join Date: Jun 2002
Posts: 867
Quote:
Originally posted by rpeterclark
Hmm, try copying from the installation directory, PNGLib.dll, wa3gamma.dll and zlib.dll to your windows/system(32) folder and see if that fixes it. If so, let me know and I will update the Setup files. Otherwise I will keep looking...
no joy, i tried all possible locations for te files, even running the exe from the sys32 dir, it's quite possibly more a program error to do with the way windows xp handles api differently from 2000, or possibly an activex funtion unique to windows xp
raydream is offline   Reply With Quote
Old 29th December 2002, 01:18   #22
SOOPRcow
Senior Member
 
Join Date: Dec 2001
Location: San Diego, CA USA
Posts: 125
Send a message via AIM to SOOPRcow
PNGLib.dll is an activex dll. It needs to be registered with regsvr32.exe

David Serrano :: Winamp5 Skining Guru
SOOPRcow is offline   Reply With Quote
Old 29th December 2002, 01:25   #23
rpeterclark
Major Dude
(Reviewer)
 
rpeterclark's Avatar
 
Join Date: Aug 2002
Location: South Florida
Posts: 1,388
Quote:
Originally posted by SOOPRcow
PNGLib.dll is an activex dll. It needs to be registered with regsvr32.exe
Ah ha! I'm sitting here digging around code, scratching my head, getting really fustrated. I'm glad you pointed that out because who knows how long it would've taken me to realize. Thanks again!

Give it a try raydream just to confirm, but that must be it. Then I'll figure out why my setup program isn't doing it automatically...
rpeterclark is offline   Reply With Quote
Old 29th December 2002, 01:27   #24
raydream
Banned
 
Join Date: Jun 2002
Posts: 867
ah, thankies SOOP, i presumed winamp3 would have registered that :/ i guess not eh?.

loving the application btw make it skinnable
raydream is offline   Reply With Quote
Old 29th December 2002, 01:34   #25
raydream
Banned
 
Join Date: Jun 2002
Posts: 867
just attached a little prog, it puts activex controls on right click of a file, if the files activex, it will allow you to register/unregister it.
Attached Files
File Type: zip regsvrex.zip (95.3 KB, 491 views)
raydream is offline   Reply With Quote
Old 29th December 2002, 02:34   #26
rpeterclark
Major Dude
(Reviewer)
 
rpeterclark's Avatar
 
Join Date: Aug 2002
Location: South Florida
Posts: 1,388
Exclamation Important Note

Ok, I've updated the setup files above so that all of the required components should be registered during install. It should even include the necessary VB Runtime files. I've removed the zipped version from my server since it won't run without manually registering some components.

Here's the link again:
Download GammaWorkerSetup.zip (2.5MB)


Please let me know if anyone has problems installing or running this app. Also, share any ideas you may have to improve it. I'm willing to try and make this better, but I have a feeling once the Winamp guys get the adjustable gamma controls back into the preferences, this app will be obsolete, so I don't want to go too crazy.
rpeterclark is offline   Reply With Quote
Old 29th December 2002, 03:46   #27
mavsman
Senior Member
 
mavsman's Avatar
 
Join Date: May 2001
Location: Suburbia, Ohio
Posts: 123
Phenomenal. I hope that more programs come out that make a skinner's work easier. Very well done.
mavsman is offline   Reply With Quote
Old 29th December 2002, 03:55   #28
rpeterclark
Major Dude
(Reviewer)
 
rpeterclark's Avatar
 
Join Date: Aug 2002
Location: South Florida
Posts: 1,388
Exclamation Update Version 1.1.2

Yet another minor bug fix in this update, the Copy Code button didn't work. Doh! The setup files now contain the updated version.
rpeterclark is offline   Reply With Quote
Old 29th December 2002, 13:38   #29
PJay Tycy
Senior Member
 
Join Date: Jan 2002
Posts: 252
I got the same error as Raydream with your first version, but the latest works ok here (win2k).


I love it !!

feature request :

Now you have to unzip a skin yourself to a temp-dir, and search for the png's in there. So a function that automates this process would be great (renaming the .wal to .zip, unzipping to temp-dir, then show the user a list of all png's in there).


PJay
PJay Tycy is offline   Reply With Quote
Old 29th December 2002, 17:30   #30
Roberto Cuellar
Senior Member
 
Roberto Cuellar's Avatar
 
Join Date: Sep 2002
Location: Santa Cruz, Bolivia
Posts: 243
the program crashes when loading the png if you saved the png interlaced, so i have to ask what's the difference in interlaced and non interlaced png??
Roberto Cuellar is offline   Reply With Quote
Old 29th December 2002, 17:37   #31
rpeterclark
Major Dude
(Reviewer)
 
rpeterclark's Avatar
 
Join Date: Aug 2002
Location: South Florida
Posts: 1,388
Ooh, really? That might be something I cannot fix, but I will look into it. But for skinning, there really is no advantage to using interlaced PNGs. If anything, I'd assume they are more memory intensive for Winamp, and slightly larger in file size.

Saving them as interlaced allows a web browser to display an image progressively as it is downloaded, you know how it looks fuzzy and fills in the details? If it is not interlaced, it has to load it top-down.

So the easy solution is to stay away from interlaced images for your skins, but they are good to use on web pages. I'll see if I can make the program not crash though, or at least show a message that says interlaced PNGs are not supported.
rpeterclark is offline   Reply With Quote
Old 29th December 2002, 17:46   #32
hammerhead
The Shark
(Forum King)
 
hammerhead's Avatar
 
Join Date: Jul 2002
Posts: 2,537
Send a message via AIM to hammerhead
Why not release this in the components section? It would get more publicity (for skinners who do not use these forums).

Great work, RPC!
hammerhead is offline   Reply With Quote
Old 29th December 2002, 17:53   #33
rpeterclark
Major Dude
(Reviewer)
 
rpeterclark's Avatar
 
Join Date: Aug 2002
Location: South Florida
Posts: 1,388
Did you ever get it running Hammerhead?
rpeterclark is offline   Reply With Quote
Old 29th December 2002, 18:42   #34
Roberto Cuellar
Senior Member
 
Roberto Cuellar's Avatar
 
Join Date: Sep 2002
Location: Santa Cruz, Bolivia
Posts: 243
i think a you shoul make the caption of the form display the name of the png the app is using, something like IE , in my case( and i think others as well) i have 3 or 4 instances at the same time and i don't know what is the one i want to use. i also think you should release it in the components section. As usual great job RPC!!
Roberto Cuellar is offline   Reply With Quote
Old 29th December 2002, 21:02   #35
rpeterclark
Major Dude
(Reviewer)
 
rpeterclark's Avatar
 
Join Date: Aug 2002
Location: South Florida
Posts: 1,388
Exclamation Minor Update 1.1.3

Good idea Roberto, it's been updated:



Here's the download: (same as before, just updated)
Download GammaWorkerSetup.zip (2.5MB)

[EDIT]If the setup program asks if you want to keep your old files, say no. Or just uninstall the old version before installing again.[/EDIT]

I also added the statusbar with various tidbits of information, and the program now prevents you from loading interlaced PNG files. I'll work on a better solution for that.
rpeterclark is offline   Reply With Quote
Old 29th December 2002, 22:01   #36
Eng3L
Senior Member
 
Eng3L's Avatar
 
Join Date: Jul 2002
Location: quebec, canada
Posts: 142
just one thing to say: Wow! ...its the best gamma converter ...very usefull. You made a good work!
Eng3L is offline   Reply With Quote
Old 29th December 2002, 23:05   #37
Eng3L
Senior Member
 
Eng3L's Avatar
 
Join Date: Jul 2002
Location: quebec, canada
Posts: 142
Bug: when i try to install the gamma converter (install.exe) i have a error and say me to reboot.I have reboot and the problem is always here. I have try to decompress the ".cab" ...run GammaWorker.exe and the windows installer start for the officexp with fontpage ...the VB6 runtime is installed. I don't know whats wrong but its very bizzard.

What you think of this?
Eng3L is offline   Reply With Quote
Old 29th December 2002, 23:12   #38
hammerhead
The Shark
(Forum King)
 
hammerhead's Avatar
 
Join Date: Jul 2002
Posts: 2,537
Send a message via AIM to hammerhead
I am having the same problem as Engel.
hammerhead is offline   Reply With Quote
Old 29th December 2002, 23:15   #39
iPlayTheSpoons
Major Dude
 
iPlayTheSpoons's Avatar
 
Join Date: Aug 2001
Location: SJSU
Posts: 1,030
Send a message via AIM to iPlayTheSpoons
me too
iPlayTheSpoons is offline   Reply With Quote
Old 29th December 2002, 23:31   #40
J_Bloggs
Major Dude
 
J_Bloggs's Avatar
 
Join Date: Jan 2002
Posts: 1,778
Umm... MAJOR BUG: the image in the preview window doesn't change when you change the values and press update, and auto update doesn't work ether. (I use win 98)

And another: when trying to load most images, I get this error: Runtime error '9' Subscript out of range

And it should be able to be maximised.

When these bugs are squashed, I think it would be cool if it could load .zip files, read and understand the xml and pngs and jpgs of a skin, display the images so that it looks like the skin, list all the gamma id's extracted from the xml in a list box so that the user can choose the id to edit, and give it the ability then save the gamma presets in the .zip where it's suposed to go.

Now THAT would kick arse!

¯¯¯¯Joe Bloggs____
¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯
J_Bloggs is offline   Reply With Quote
Reply
Go Back   Winamp & SHOUTcast Forums > Skinning and Design > Modern Skins

Thread Tools Search this Thread
Search this Thread:

Advanced Search
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

Forum Jump