[NXC] DRAW_OPT_INVERT?

Discussion specific to NXT-G, NXC, NBC, RobotC, Lejos, and more.
Post Reply
nxtboyiii
Posts: 366
Joined: 02 Oct 2010, 07:08
Location: Everywhere

[NXC] DRAW_OPT_INVERT?

Post 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
Thanks, and have a nice day,
nxtboy III

programnxt.com
muntoo
Posts: 834
Joined: 01 Oct 2010, 02:54
Location: Your Worst Nightmare
Contact:

Re: [NXC] DRAW_OPT_INVERT?

Post 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.
Image

Commit to LEGO Mindstorms Robotics Stack Exchange:
bit.ly/MindstormsSE


Commit to LEGO Stack Exchange: bit.ly/Area51LEGOcommit
spillerrec
Posts: 358
Joined: 01 Oct 2010, 06:37
Location: Denmark
Contact:

Re: [NXC] DRAW_OPT_INVERT?

Post 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.
My blog: http://spillerrec.dk/category/lego/
RICcreator, an alternative to nxtRICeditV2: http://riccreator.sourceforge.net/
nxtboyiii
Posts: 366
Joined: 02 Oct 2010, 07:08
Location: Everywhere

Re: [NXC] DRAW_OPT_INVERT?

Post by nxtboyiii »

Oh wow! Thanks!
Thanks, and have a nice day,
nxtboy III

programnxt.com
Post Reply

Who is online

Users browsing this forum: Semrush [Bot] and 4 guests