|
Post by hartnell on Nov 16, 2006 8:09:05 GMT -5
It took me forever to figure out why graphics.SetR, etc wasn't working like I expected it to. How about a second set of methods - graphics.TintImageR - G - B -etc. These will gaurantee that your image will become blue(er) if you boot up the blue.
-hartnell
|
|
|
Post by Guilect on Nov 16, 2006 17:48:21 GMT -5
Use this command to adjust the colors (and alpha) of an image.
graphics.setcolor ImageIndex, Color
e.g. graphics.setcolor background, &hFF0000FF or graphics.setcolor background, ARGB(255,0,0,255) or graphics.setcolor background, ARGB(&hFF, &h00,&h00,&hFF)
|
|
|
Post by Guilect on Nov 16, 2006 17:56:14 GMT -5
Some additional info:
The default ARGB for an image is 255, 255, 255, 255 (&HFFFFFFFF) (Fully opaque (no transparency) and full all 3 color components)
So you can't turn the blue up. It is already all the way up. To have a lot of the blue color componet show, for example, you need to turn down the other 2 color components. Like so
graphics.setr background, 0 graphics.setg background, 0 graphics.setb background, 255
This will tint your image blue.
The command in my post just above combines all 3 color components as well as the images alpha and makes it easy to set the tint that you want.
|
|