CartoType C++ API 7.8.2, 2022-03-25
for Windows, Linux, Qt and other platforms supporting C++ development
Public Member Functions | List of all members
CartoType::CPalette Class Reference

#include <cartotype_bitmap.h>

Public Member Functions

 CPalette (const std::vector< TColor > &aColor)
const TColorColor () const
size_t ColorCount () const

Detailed Description

A palette of colors used in a bitmap.

Constructor & Destructor Documentation

◆ CPalette()

CartoType::CPalette::CPalette ( const std::vector< TColor > &  aColor)

Creates a palette from a vector of colors.

Member Function Documentation

◆ Color()

const TColor * CartoType::CPalette::Color ( ) const

Returns a pointer to the color array.

◆ ColorCount()

size_t CartoType::CPalette::ColorCount ( ) const

Returns the number of colors in the palette.

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