Bitmap outline provider. More...
#include <outline_provider_bitmap.h>
Public Member Functions | |
Construction | |
CL_OutlineProviderBitmap (const CL_PixelBuffer &pbuf, int alpha_limit=128, bool get_insides=true) | |
Construct a contour. | |
~CL_OutlineProviderBitmap () | |
Attributes | |
virtual std::vector< CL_Contour > | get_contours () |
return the countours that make up the outline | |
virtual int | get_width () |
return the width of the image used as basis for outline creation. | |
virtual int | get_height () |
return the height of the image used as basis for outline creation. | |
Operations | |
virtual void | destroy () |
Destroys the provider. |
Bitmap outline provider.
A CL_OutlineProviderBitmap is used to find outlines based on the alpha channel of images.
CL_OutlineProviderBitmap::CL_OutlineProviderBitmap | ( | const CL_PixelBuffer & | pbuf, | |
int | alpha_limit = 128 , |
|||
bool | get_insides = true | |||
) |
Construct a contour.
pbuf | PixelBuffer containing image data. | |
alpha_limit | Minimum alpha value for a colliding pixel | |
get_insides | Get Insides |
CL_OutlineProviderBitmap::~CL_OutlineProviderBitmap | ( | ) |
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.