Page 1 of 1

[NXC] DRAW_OPT_INVERT?

Posted: 11 Jul 2011, 21:31
by nxtboyiii
Hi,
IIRC I used to be able to draw a graphic in NXC and using the option DRAW_OPT_INVERT the output on the nxt screen would be the ric image but inverted. Now I try it and the picture does not become inverted?
Is there another way to do this or am I wrong?
Does anyone else have this issue?
Did this use to be possible?

nxtboy III

Re: [NXC] DRAW_OPT_INVERT?

Posted: 11 Jul 2011, 21:48
by muntoo
I don't think you could ever do that. Put it on the wishlist, maybe?

You could always store an inverted copy of the .ric.

Re: [NXC] DRAW_OPT_INVERT?

Posted: 11 Jul 2011, 22:04
by spillerrec
http://bricxcc.sourceforge.net/nbc/nxcdoc/nxcapi/group___display_draw_option_constants.html wrote:Note that when drawing a RIC file, the initial 'DrawingOptions' parameter supplied in the drawing instruction controls screen clearing, but nothing else. The 'CopyOptions' parameter from each instruction in the RIC file then controls graphic operations, but the screen-clearing bits are ignored.
So if you want to do this, you should use GraphicOutEx() and set one of the parameters to DRAW_OPT_INVERT. Then in the COPY_BITS opcode, set CopyOptions to use that parameter. This way you can turn inversion on and off as needed.

Re: [NXC] DRAW_OPT_INVERT?

Posted: 11 Jul 2011, 23:08
by nxtboyiii
Oh wow! Thanks!