Aurigma Forums
»
Legacy Products
»
Archive
»
Other Products
»
Simple Example with IColorAdjustment.adjustHsl method
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
|
|
|
|
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
|
|
|
|
Rank: Advanced Member
Groups: Member, Administration Joined: 8/2/2003(UTC) Posts: 876
Thanks: 2 times Was thanked: 27 time(s) in 27 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.
|
|
|
|
Aurigma Forums
»
Legacy Products
»
Archive
»
Other Products
»
Simple Example with IColorAdjustment.adjustHsl method
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.