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