Arma Reforger Script API
Loading...
Searching...
No Matches
SCR_ImageHelper Interface Reference

Static Public Member Functions

static bool TEMP_SaveImageDataWrapper (string filePath, int width, int height, notnull array< int > data)
 
static array< int > GetImageDataBlackAndWhite (notnull array< float > greyscaleValues01)
 
static array< int > GetImageDataAlphaColour (notnull array< float > greyscaleValues01, Color colour=null)
 
static bool IncreaseResolution (notnull inout array< int > imageData, int width, int height, int factor)
 Increase resolution - each pixel will take factor × factor pixels, e.g 64×64 factor 4 = 256×256.
 
static bool SaveImageDataToPNG (string filePath, int width, int height, notnull array< int > imageData)
 

Static Protected Member Functions

static void GetTextureRawDataCallbackMethod (PixelRawData data, int imageWidth, int imageHeight, int stride)
 

Static Protected Attributes

static string s_sImageFilePath
 
static const string DEFAULT_FILE_PATH = "image.png"
 
static const string PNG_DOTTED_EXTENSION = ".png"
 
static const string DDS_DOTTED_EXTENSION = ".dds"
 
static const string EDDS_DOTTED_EXTENSION = ".edds"
 
static const string META_DOTTED_EXTENSION = ".meta"
 

Member Function Documentation

◆ GetImageDataAlphaColour()

static array< int > SCR_ImageHelper.GetImageDataAlphaColour ( notnull array< float > greyscaleValues01,
Color colour = null )
static
Parameters
[in]greyscaleValues01
[in]colorif null, uses full white
Returns

◆ GetImageDataBlackAndWhite()

static array< int > SCR_ImageHelper.GetImageDataBlackAndWhite ( notnull array< float > greyscaleValues01)
static
Parameters
[in]greyscaleValues01
Returns
int array of ARGB values

◆ GetTextureRawDataCallbackMethod()

static void SCR_ImageHelper.GetTextureRawDataCallbackMethod ( PixelRawData data,
int imageWidth,
int imageHeight,
int stride )
staticprotected

◆ IncreaseResolution()

static bool SCR_ImageHelper.IncreaseResolution ( notnull inout array< int > imageData,
int width,
int height,
int factor )
static

Increase resolution - each pixel will take factor × factor pixels, e.g 64×64 factor 4 = 256×256.

Parameters
[in,out]imageData
[in]factor
Returns
true on success, false otherwise

◆ SaveImageDataToPNG()

static bool SCR_ImageHelper.SaveImageDataToPNG ( string filePath,
int width,
int height,
notnull array< int > imageData )
static
Parameters
[in]filePath
[in]width
[in]height
[in]imageDataARGB int raw pixels
Returns
true on success, false otherwise

◆ TEMP_SaveImageDataWrapper()

static bool SCR_ImageHelper.TEMP_SaveImageDataWrapper ( string filePath,
int width,
int height,
notnull array< int > data )
static
Parameters
[in]filePath
[in]width
[in]height
[in]datain ARGB format (0xAARRGGBB, e.g 0xFF0000FF for blue)
Returns
true on success, false otherwise

Member Data Documentation

◆ DDS_DOTTED_EXTENSION

const string SCR_ImageHelper.DDS_DOTTED_EXTENSION = ".dds"
staticprotected

◆ DEFAULT_FILE_PATH

const string SCR_ImageHelper.DEFAULT_FILE_PATH = "image.png"
staticprotected

◆ EDDS_DOTTED_EXTENSION

const string SCR_ImageHelper.EDDS_DOTTED_EXTENSION = ".edds"
staticprotected

◆ META_DOTTED_EXTENSION

const string SCR_ImageHelper.META_DOTTED_EXTENSION = ".meta"
staticprotected

◆ PNG_DOTTED_EXTENSION

const string SCR_ImageHelper.PNG_DOTTED_EXTENSION = ".png"
staticprotected

◆ s_sImageFilePath

string SCR_ImageHelper.s_sImageFilePath
staticprotected

The documentation for this interface was generated from the following file: