I have a problem - I want to take a section of an image from one pic
win to another but when I use the -r switch and the
$rgb($getdot(@window, x, y)) it's drawing out the section in a red-
scale. Why? Any way to fix this?
Thanks,
Jesse.
/drawdot -r $rgb($getdot(@window, %widthloop, %heightloop))
$getdot returns one number, multiples of 1 = 0 - 255 of red, multiples
of 256 in the number = 256 for each increment of green and multiples
of 65536 = 1 increment of blue. $rgb takes that one number and turns
it in to it's rgb value (eg: 0,0,0 - 255,255,255).
SO, with that written in the help (well, not entirely, tried it and
worked it out), it just does not make sense the above command I'm
using should not work and draw out the section in a red-scale. I
would rather find a way to fix it this way than to cut out a specific
area as well. . . . .
Please help! :o(
Jesse.
> > Jesse.- Hide quoted text -- Show quoted text -
$rgb(red, blue, green)
$rgb(348283,0,0) = maximum red, automatically converted to 255.
So, take out the $rgb along with their parentheses and you should be
good.
> > > Jesse.- Hide quoted text -- Show quoted text -- Hide quoted text -- Show quoted text -
It's funny though, the $rgb should not have taken the one number as
the only parameter for red. I tried testing it with $rgb(long number
here) and then getting the result of x,y,z and then using $rgb(x,y,z)
and having it correctly give the original number...... However, just
pleased it's working now.
Many thanks!
Jester.