Welcome Guest! You need to login or register to make posts.

Notification

Icon
Error

Options
Go to last post Go to first unread
nishanthe  
#1 Posted : Sunday, December 04, 2005 12:22:13 AM(UTC)
nishanthe

Rank: Member

Groups: Member
Joined: 10/7/2005(UTC)
Posts: 10

Hi, I hope somebody (Specially Andrew :D) will help me with providing a sample code which uses IColorAdjustment.adjustHsl method. Here is my requirement: I am getting an objects Hue, Satu, Lum values with flash application and will be send to server. at the server I want to adjust an Image's HSL according to recieved values.. Please help me..I am newbee to VBScript.. -Nishanthe
nishanthe  
#2 Posted : Sunday, December 04, 2005 12:54:07 PM(UTC)
nishanthe

Rank: Member

Groups: Member
Joined: 10/7/2005(UTC)
Posts: 10

Hi, I have found the solution that works fine. But I have a problem now..Because, I am getting Saturation and Luminosity as Percentages(%), But Aurigma GM uses values between 255 - (-255). Can somebody tell me how I can convert percentage values in the format that suports Aurigma GM? Thanks, -Nishanthe
Andrew  
#3 Posted : Friday, January 06, 2006 12:59:28 PM(UTC)
Andrew

Rank: Advanced Member

Groups: Member, Administration
Joined: 8/2/2003(UTC)
Posts: 863

Thanks: 2 times
Was thanked: 25 time(s) in 25 post(s)
Code:
value = (percentage * 255) / 100
where:
  • percentage - a number in range [-100, 100]
  • value - result, i.e. a number in range [-255, 255]
Note, in Graphics Mill 0 means no change. If you get value in range [0, 100], you need to shift it to the center of the range.
Users browsing this topic
Forum Jump  
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.