Navigation
API > API/Plugins > API/Plugins/Paper2D
References
| Module | Paper2D |
| Header | /Engine/Plugins/2D/Paper2D/Source/Paper2D/Public/AlphaBitmap.h |
| Include | #include "AlphaBitmap.h" |
Syntax
struct PAPER2FAlphaBitmap
Variables
| Type | Name | Description | |
|---|---|---|---|
| uint8 | DefaultValue | ||
| int32 | Height | ||
| TArray< uint8 > | RawData | ||
| int32 | Width |
Functions
| Type | Name | Description | |
|---|---|---|---|
| void | AnalyzeImage
(
int32 StartX, |
Checks the image to determine if it is suitable for opaque, masked or translucent rendering. | |
| void | |||
| void | DrawRectOutline
(
int StartX, |
Sets pixels to 1 marking the rectangle outline. | |
| void | ExtractFromTexture
(
UTexture* SourceTexture |
||
FAlphaBitmap
(
UTexture* SourceTexture, |
|||
FAlphaBitmap
(
int InWidth, |
Create an empty bitmap. | ||
| void | FillRect
(
int StartX, |
||
| bool | FoundClosestValidPoint
(
int StartX, |
Wind through the bitmap from StartX, StartY to find the closest hit point. | |
| uint8 | GetPixel
(
int X, |
||
| void | GetTightBounds
(
FIntPoint& OutOrigin, |
Returns the tight bounding box around pixels that are not 0. | |
| bool | IsColumnEmpty
(
int X, |
||
| bool | IsColumnEqual
(
int X, |
||
| bool | IsRegionEmpty
(
int32 X0, |
Is the rectangle empty (X0..X1, Y0..Y1 inclusive) | |
| bool | IsRegionEqual
(
int32 X0, |
Is the rectangle empty (X0..X1, Y0..Y1 inclusive) | |
| bool | IsRowEmpty
(
int X0, |
||
| bool | IsRowEqual
(
int X0, |
||
| bool | IsValid () |
||
| void | SetPixel
(
int X, |
||
| void | ThresholdImage
(
int32 AlphaThreshold |
||
| void | ThresholdImageBothWays
(
int32 LowAlphaThreshold, |
Flushes values smaller or equal to LowAlphaThreshold to 0, and values greater or equal to HighAlphaThreshold to 255. | |
| void | TightenBounds
(
FIntPoint& InOutOrigin, |
Returns the tight bounding box around pixels that are not 0. |