diff options
author | Gregory Nutt <gnutt@nuttx.org> | 2013-10-15 16:08:06 -0600 |
---|---|---|
committer | Gregory Nutt <gnutt@nuttx.org> | 2013-10-15 16:08:06 -0600 |
commit | 57aa5b7bfc908170d9b068ebf71696bafdea473d (patch) | |
tree | eee07c0bf503340a7cbf67028d15361d333e58f7 /NxWidgets/libnxwidgets/src/cscaledbitmap.cxx | |
parent | 7ef1ad19448670543bece35c3a6119e6a440c778 (diff) | |
download | nuttx-57aa5b7bfc908170d9b068ebf71696bafdea473d.tar.gz nuttx-57aa5b7bfc908170d9b068ebf71696bafdea473d.tar.bz2 nuttx-57aa5b7bfc908170d9b068ebf71696bafdea473d.zip |
Add a 320x320 NuttX logo image
Diffstat (limited to 'NxWidgets/libnxwidgets/src/cscaledbitmap.cxx')
-rw-r--r-- | NxWidgets/libnxwidgets/src/cscaledbitmap.cxx | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/NxWidgets/libnxwidgets/src/cscaledbitmap.cxx b/NxWidgets/libnxwidgets/src/cscaledbitmap.cxx index e274bbb0a..1ebf60324 100644 --- a/NxWidgets/libnxwidgets/src/cscaledbitmap.cxx +++ b/NxWidgets/libnxwidgets/src/cscaledbitmap.cxx @@ -179,6 +179,11 @@ const size_t CScaledBitmap::getStride(void) const /** * Get one row from the bit map image. * + * REVISIT: This algorithm is really intended to expand images. Hence, + * for example, interpolation is between row and row+1 and column and + * column+1 in the original, unscaled image. You would the interpolation + * differently if you really wanted to sub-sample well. + * * @param x The offset into the row to get * @param y The row number to get * @param width The number of pixels to get from the row @@ -580,6 +585,9 @@ bool CScaledBitmap::rowColor(FAR uint8_t *row, b16_t column, // between transparent and opaque regions. // Return the color closest to the requested position + // + // A fraction of < 0.5 would mean to use use mostly color1; a fraction + // greater than 0.5 would men to use mostly color2 if (fraction < b16HALF) { |