Login | |
|
 |
RE: What language is best for my goal? - 9/29/2005 10:55:44 PM
|
|
 |
|
| |
Snipah
Posts: 1343
Score: 6
Joined: 11/1/2004
From: Netherlands
Status: offline
|
Me neither, but i can't help to snoop the web to get as close as i can to the request... Last chance for me...... try this: http://www.vimas.com/server_sdk/pixcolor.htm Examples:<% @language="VBScript" %> <% Set myImage = Server.CreateObject("VIMAS.Image") ' Declare variable to hold the IVimasImage Object reference. fileSize = myImage.Load("c:\images\girl.png") if not myImage.Colormap = imgColor_24 then ' Convert image into TrueColor colormap mode. Call myImage.Edit("RGB24", "", "") endif Dim Color As OLE_COLOR ' get pixel color in position x=10, y=20 Color = myImage.PixelColor(10, 20) ' retrieve Alpha, Red, Green, Blue components of the color If Color < 0 Then Color = 2147483647 + Color + 1 Alpha = Color \ (2 ^ 23) Color = Color - Alpha * (2 ^ 23) Alpha = Alpha + 1 Else Alpha = Color \ (2 ^ 24) Color = Color - Alpha * (2 ^ 24) End If Red = Color \ (2 ^ 16) Color = Color - Red * (2 ^ 16) Green = Color \ (2 ^ 8) Blue = Color - Green * (2 ^ 8) ' set red color to the pixel in the position 10,10 Color = &HFF0000 myImage.PixelColor(10, 10) = Color %>
_____________________________
For more information, please see the "Read me First" topic. http://www.visualbasicscript.com
|
|
| |
|
|
|
 |
RE: What language is best for my goal? - 9/30/2005 3:37:19 PM
|
|
 |
|
| |
TNO
Posts: 1064
Score: 10
Joined: 12/18/2004
From: thenewobjective.com
Status: offline
|
What do these buttons do and why do you need to click them?
_____________________________
To iterate is human, to recurse divine. -- L. Peter Deutsch
|
|
| |
|
|
|
|
|