NxWidgets::CScaledImage: New class that wraps any class that provides IBitMap and adds image scaling
This commit is contained in:
parent
b8df3a7e91
commit
e6b1786473
|
@ -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
|
||||
|
@ -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" {
|
||||
|
|
Loading…
Reference in New Issue