IDOS->Printf("R %ld G %ld B %ld\n",((rgb[0]&0xFF000000)>>24),
((rgb[1]&0xFF000000)>>24),
((rgb[2]&0xFF000000)>>24));
IIntuition->FreeScreenDrawInfo(scr,dri);
}
IIntuition->UnlockPubScreen(NULL,scr);
}
}
Please read up on the various functions and structures in the autodocs as there are various range limitations on number of pens etc, that I haven't checked for in this quick example.
Something like this compile with: gcc -o ram:getrgb ram:getrgb.c -lauto
Please read up on the various functions and structures in the autodocs as there are various range limitations on number of pens etc, that I haven't checked for in this quick example.
Thanks that points me in the right direction. Much appreciated.
DStastny