Friday, November 17th 2017, 6:26pm UTC+1

You are not logged in.

  • Login
  • Register

Mr. Spock

Beginner

Date of registration: May 19th 2009

Posts: 13

1

Tuesday, October 17th 2017, 1:28am

SLIN_1 (T6963) color inversion

Hi

Want to invert the definition of black and white colors . How to do that ?


Best regards

SEGGER - Schoenen

Super Moderator

Date of registration: Aug 13th 2015

Posts: 410

2

Wednesday, October 18th 2017, 12:16pm

Hi,

Yes this is possible.

The easiest way would to use custom color conversion routines. Please take a look into the emWin manual in chapter 15.8 'Application defined color conversion'. There is explained how a custom color conversion can be set.

If you want to change the color conversion in runtime simply react on a variable and change the content of _Color2Index_User() and _Index2Color_User().

Regards
Sven