Texture raw utilities.
More...
#include <TextureRaw.hpp>
|
using | PixelArray = std::shared_ptr< std::vector< _u::Color > > |
|
|
static bool | Load (::Array< uint8_t > *p_Bytes, int &p_Width, int &p_Height, PixelArray *p_Pixels) |
| Load an image into raw pixels.
|
|
static void | FastGaussianBlur (int p_InWidth, int p_InHeight, PixelArray &p_InPixels, int p_Radius) |
| Blur an image.
|
|
static void | Multiply (PixelArray &p_ImageA, PixelArray &p_ImageB) |
| Multiply image A & B into A.
|
|
static PixelArray | ResampleAndCrop (int p_InWidth, int p_InHeight, PixelArray &p_InPixels, int p_TargetWidth, int p_TargetHeight, float p_YOffsetRel=0.5f) |
| Resize an image and crop it.
|
|
Texture raw utilities.
Definition at line 17 of file TextureRaw.hpp.
◆ PixelArray
using CP_SDK::Unity::TextureRaw::PixelArray = std::shared_ptr<std::vector<_u::Color> > |
◆ FastGaussianBlur()
static void CP_SDK::Unity::TextureRaw::FastGaussianBlur |
( |
int |
p_InWidth, |
|
|
int |
p_InHeight, |
|
|
PixelArray & |
p_InPixels, |
|
|
int |
p_Radius |
|
) |
| |
|
static |
Blur an image.
- Parameters
-
p_InWidth | Source width |
p_InHeight | Source height |
p_InPixels | Input image |
p_Radius | Blur radius |
◆ Load()
static bool CP_SDK::Unity::TextureRaw::Load |
( |
::Array< uint8_t > * |
p_Bytes, |
|
|
int & |
p_Width, |
|
|
int & |
p_Height, |
|
|
PixelArray * |
p_Pixels |
|
) |
| |
|
static |
Load an image into raw pixels.
- Parameters
-
p_Bytes | Input bytes |
p_Width | Ouput width |
p_Height | Output height |
p_Pixels | Output pixels |
◆ Multiply()
static void CP_SDK::Unity::TextureRaw::Multiply |
( |
PixelArray & |
p_ImageA, |
|
|
PixelArray & |
p_ImageB |
|
) |
| |
|
static |
Multiply image A & B into A.
- Parameters
-
p_ImageA | Target |
p_ImageB | Additional image |
◆ ResampleAndCrop()
static PixelArray CP_SDK::Unity::TextureRaw::ResampleAndCrop |
( |
int |
p_InWidth, |
|
|
int |
p_InHeight, |
|
|
PixelArray & |
p_InPixels, |
|
|
int |
p_TargetWidth, |
|
|
int |
p_TargetHeight, |
|
|
float |
p_YOffsetRel = 0.5f |
|
) |
| |
|
static |
Resize an image and crop it.
- Parameters
-
p_InWidth | Source width |
p_InHeight | Source height |
p_InPixels | Input image |
p_TargetWidth | Target width |
p_TargetHeight | Target height |
p_YOffsetRel | Height anchor |
The documentation for this class was generated from the following file: