|
-
Apr 8th, 2000, 01:05 AM
#1
Thread Starter
Junior Member
Just a handy tip:
If you want to grey scal a Icon, get the color of each pixel individually (prefferably with the GetPixel API), get the RGB value that is the highest i.e. if the RGB value of the pixel is "23,60,10" use 60. Then set the remaining two colors equal to the higest color (leaving you with "60,60,60") then write it back to the target image (prefferably with the SetPixel API) and vouala! you have a grey scaled icon! (Just remember to check each pixel agianst the picture box's background color to retain the transparancy)
Now if I can just figure out how to stop the picture box from throughing away the pixels that has been drawn whenever the picture box redraws 
P.S. The use of the API's are purely for speed reasons.
"He who laughs at a question is not worth being asked"
RavenCrow

-
Apr 8th, 2000, 01:31 AM
#2
Frenzied Member
-
Apr 8th, 2000, 02:56 AM
#3
Thread Starter
Junior Member
Thanks 
P.S. Setting the autoredraw to true only works after you set {window.refresh}
"He who laughs at a question is not worth being asked"
RavenCrow

Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|