CartoType API
Public Member Functions
CartoType::CLinearGradient Class Reference

#include <cartotype_gradient.h>

Inheritance diagram for CartoType::CLinearGradient:
CartoType::CLinearOrRadialGradient CartoType::CPaintServer CartoType::MPaintServer

List of all members.

Public Member Functions

CT_IMPORT CLinearGradient (const TPoint &aStart, const TPoint &aEnd)
CT_IMPORT CLinearGradient (const TPoint &aStart, const TPoint &aEnd, TColor aStartColor, TColor aEndColor)
CT_IMPORT void SetRange (const TPoint &aStart, const TPoint &aEnd)
CT_IMPORT TColor Color (int32 aX, int32 aY)

Detailed Description

A linear gradient.


Constructor & Destructor Documentation

CT_EXPORT CLinearGradient::CLinearGradient ( const TPoint aStart,
const TPoint aEnd 
)

Create a linear gradient with no stops. (Use SetStops to set the stops.)

CT_EXPORT CLinearGradient::CLinearGradient ( const TPoint aStart,
const TPoint aEnd,
TColor  aStartColor,
TColor  aEndColor 
)

Create a linear gradient from aStartColor at 0% to aEndColor at 100%.


Member Function Documentation

CT_EXPORT TColor CLinearGradient::Color ( int32  aX,
int32  aY 
) [virtual]

Supply a color for the pixel at (aX,aY) in premultiplied RGBA format.

Implements CartoType::MPaintServer.

CT_EXPORT void CLinearGradient::SetRange ( const TPoint aStart,
const TPoint aEnd 
)

Set the line segment defining the range of a linear gradient.


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