nuttx-apps/tools
Xiang Xiao e0dcfa0c55 Remove extra whitespace from files (#43)
* Remove multiple newlines at the end of file
* Remove the white space from the end of line
2020-01-31 08:29:24 -06:00
..
bitmap_converter.py Squashed commit of the following: 2019-04-04 18:53:29 -06:00
check-hash.sh Merged in manuelstuehn/nuttx-apps/feature/bsd-portable (pull request #190) 2019-08-10 17:16:33 +00:00
mkimport.sh Remove the duplicated build script files from apps/impor/tools. These will now be copied from nuttx/tools when the export package is created. 2019-10-01 07:51:01 -06:00
mkkconfig.bat Update comments, README's, etc. to reflect changes to nuttx/boards directory reorganization. 2019-08-09 08:40:22 -06:00
mkkconfig.sh Remove extra whitespace from files (#43) 2020-01-31 08:29:24 -06:00
mkromfsimg.sh tools/mkromfsimg.sh: Use sed to add const to ROMFS declarations so that they like in FLASH not RAM. 2019-10-07 21:52:08 -06:00
mksymtab.sh tools/mksymtab.sh: Include nuttx/symtab.h instead of nuttx/binfmt/symtab.h. 2019-10-01 08:04:06 -06:00
README.txt Remove extra whitespace from files (#43) 2020-01-31 08:29:24 -06:00

NxWidgets/tools README File
===========================

bitmap_converter.py
-------------------

  This script converts from any image type supported by Python imaging library to
  the RLE-encoded format used by NxWidgets.

  RLE (Run Length Length) is a very simply encoding that compress quite well
  with certain kinds of images:  Images that that have many pixels of the
  same color adjacent on a row (like simple graphics).  It does not work well
  with photographic images.

  But even simple graphics may not encode compactly if, for example, they have
  been resized.  Resizing an image can create hundreds of unique colors that
  may differ by only a bit or two in the RGB representation.  This "color
  smear" is the result of pixel interpolation (and might be eliminated if
  your graphics software supports resizing via pixel replication instead of
  interpolation).

  When a simple graphics image does not encode well, the symptom is that
  the resulting RLE data structures are quite large.  The pallette structure,
  in particular, may have hundreds of colors in it.  There is a way to fix
  the graphic image in this case.  Here is what I do (in fact, I do this
  on all images prior to conversion just to be certain):

  - Open the original image in GIMP.
  - Select the option to select the number of colors in the image.
  - Pick the smallest number of colors that will represent the image
    faithfully.  For most simple graphic images this might be as few as 6
    or 8 colors.
  - Save the image as PNG or other lossless format (NOT jpeg).
  - Then generate the image.