ClanLib  2.3.7
List of all members
CL_OutlineProviderBitmap Class Reference

Bitmap outline provider. More...

#include <outline_provider_bitmap.h>

Inheritance diagram for CL_OutlineProviderBitmap:
Inheritance graph
[legend]

Public Member Functions

Construction
 CL_OutlineProviderBitmap (const CL_PixelBuffer &pbuf, int alpha_limit=128, bool get_insides=true)
 Construct a contour. More...
 
 ~CL_OutlineProviderBitmap ()
 
Attributes
virtual std::vector< CL_Contourget_contours ()
 return the countours that make up the outline More...
 
virtual int get_width ()
 return the width of the image used as basis for outline creation. More...
 
virtual int get_height ()
 return the height of the image used as basis for outline creation. More...
 
Operations
virtual void destroy ()
 Destroys the provider. More...
 

Detailed Description

Bitmap outline provider.

A CL_OutlineProviderBitmap is used to find outlines based on the alpha channel of images.

Constructor & Destructor Documentation

CL_OutlineProviderBitmap::CL_OutlineProviderBitmap ( const CL_PixelBuffer pbuf,
int  alpha_limit = 128,
bool  get_insides = true 
)

Construct a contour.

Parameters
pbufPixelBuffer containing image data.
alpha_limitMinimum alpha value for a colliding pixel
get_insidesGet Insides
CL_OutlineProviderBitmap::~CL_OutlineProviderBitmap ( )

Member Function Documentation

virtual void CL_OutlineProviderBitmap::destroy ( )
virtual

Destroys the provider.

Implements CL_OutlineProvider.

virtual std::vector<CL_Contour> CL_OutlineProviderBitmap::get_contours ( )
virtual

return the countours that make up the outline

Implements CL_OutlineProvider.

virtual int CL_OutlineProviderBitmap::get_height ( )
virtual

return the height of the image used as basis for outline creation.

Implements CL_OutlineProvider.

virtual int CL_OutlineProviderBitmap::get_width ( )
virtual

return the width of the image used as basis for outline creation.

Implements CL_OutlineProvider.


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