|
ClanLib
2.3.7
|
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. More... | |
| ~CL_OutlineProviderBitmap () | |
Attributes | |
| virtual std::vector< CL_Contour > | get_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... | |
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 |
Destroys the provider.
Implements CL_OutlineProvider.
|
virtual |
return the countours that make up the outline
Implements CL_OutlineProvider.
|
virtual |
return the height of the image used as basis for outline creation.
Implements CL_OutlineProvider.
|
virtual |
return the width of the image used as basis for outline creation.
Implements CL_OutlineProvider.
1.8.4