diff options
author | Gregory Nutt <gnutt@nuttx.org> | 2013-10-15 11:09:20 -0600 |
---|---|---|
committer | Gregory Nutt <gnutt@nuttx.org> | 2013-10-15 11:09:20 -0600 |
commit | 24ee5014675d43c80c0580882fe5cc24ca17e7a8 (patch) | |
tree | e723687b37dcce6d8d582830c8ca0d52d057e9c6 /nuttx | |
parent | b5a37a3e45ac9faea285cc252e742c1c7267a6d7 (diff) | |
download | px4-nuttx-24ee5014675d43c80c0580882fe5cc24ca17e7a8.tar.gz px4-nuttx-24ee5014675d43c80c0580882fe5cc24ca17e7a8.tar.bz2 px4-nuttx-24ee5014675d43c80c0580882fe5cc24ca17e7a8.zip |
NxWidgets::CScaledImage: New class that wraps any class that provides IBitMap and adds image scaling
Diffstat (limited to 'nuttx')
-rw-r--r-- | nuttx/include/nuttx/rgbcolors.h | 29 |
1 files changed, 26 insertions, 3 deletions
diff --git a/nuttx/include/nuttx/rgbcolors.h b/nuttx/include/nuttx/rgbcolors.h index 0f15d8158..b4b8826d4 100644 --- a/nuttx/include/nuttx/rgbcolors.h +++ b/nuttx/include/nuttx/rgbcolors.h @@ -2,7 +2,7 @@ * include/nuttx/rgbcolors.h * User-friendly RGB color definitions * - * Copyright (C) 2010-2011 Gregory Nutt. All rights reserved. + * Copyright (C) 2010-2011, 2013 Gregory Nutt. All rights reserved. * Author: Gregory Nutt <gnutt@nuttx.org> * * Redistribution and use in source and binary forms, with or without @@ -45,7 +45,7 @@ * Pre-Processor Definitions ****************************************************************************/ /* Color Creation and Conversion Macros *************************************/ -/* This macro creates RGB24 from 8:8:8 RGB */ +/* This macro creates RGB24 from 8:8:8 RGB */ #define RGBTO24(r,g,b) \ ((uint32_t)((r) & 0xff) << 16 | (uint32_t)((g) & 0xff) << 8 | (uint32_t)((b) & 0xff)) @@ -268,11 +268,34 @@ #define RGB8_YELLOW 0xfc /**************************************************************************** - * Public Data + * Public Types ****************************************************************************/ #ifndef __ASSEMBLY__ +/* This is a generic representation of an RGB color */ + +struct rgbcolor_s +{ + uint8_t r; /* Red value */ + uint8_t b; /* Blue value */ + uint8_t g; /* Green value */ +}; + +/* This is a generic representation of an RGB color with ALPHA */ + +struct argbcolor_s +{ + uint8_t a; /* Alpha value (transparency) */ + uint8_t r; /* Red value */ + uint8_t b; /* Blue value */ + uint8_t g; /* Green value */ +}; + +/**************************************************************************** + * Public Data + ****************************************************************************/ + #ifdef __cplusplus #define EXTERN extern "C" extern "C" { |