CartoType C++ API 8.8-7-gb35e4dc71
for Windows, Linux, Qt and other platforms supporting C++ development
Public Member Functions | List of all members
CartoTypeCore::Palette Class Reference

#include <cartotype_bitmap.h>

Public Member Functions

 Palette (const std::vector< Color > &aColor)
 
const CartoTypeCore::ColorColor () const
 
size_t ColorCount () const
 

Detailed Description

A palette of colors used in a bitmap.

Constructor & Destructor Documentation

◆ Palette()

CartoTypeCore::Palette::Palette ( const std::vector< Color > &  aColor)
inline

Creates a palette from a vector of colors.

Member Function Documentation

◆ Color()

const CartoTypeCore::Color * CartoTypeCore::Palette::Color ( ) const
inline

Returns a pointer to the color array.

◆ ColorCount()

size_t CartoTypeCore::Palette::ColorCount ( ) const
inline

Returns the number of colors in the palette.


The documentation for this class was generated from the following file: