DDraceNetwork Docs
image_manipulation.h File Reference
#include <engine/image.h>
#include <cstdint>
Include dependency graph for image_manipulation.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Functions

bool ConvertToRgba (uint8_t *pDest, const CImageInfo &SourceImage)
 
bool ConvertToRgbaAlloc (uint8_t *&pDest, const CImageInfo &SourceImage)
 
bool ConvertToRgba (CImageInfo &Image)
 
void ConvertToGrayscale (const CImageInfo &Image)
 
void DilateImage (uint8_t *pImageBuff, int w, int h)
 
void DilateImage (const CImageInfo &Image)
 
void DilateImageSub (uint8_t *pImageBuff, int w, int h, int x, int y, int SubWidth, int SubHeight)
 
uint8_t * ResizeImage (const uint8_t *pImageData, int Width, int Height, int NewWidth, int NewHeight, int BPP)
 
void ResizeImage (CImageInfo &Image, int NewWidth, int NewHeight)
 
int HighestBit (int OfVar)
 

Function Documentation

◆ ConvertToGrayscale()

void ConvertToGrayscale ( const CImageInfo Image)

◆ ConvertToRgba() [1/2]

bool ConvertToRgba ( CImageInfo Image)

◆ ConvertToRgba() [2/2]

bool ConvertToRgba ( uint8_t *  pDest,
const CImageInfo SourceImage 
)

◆ ConvertToRgbaAlloc()

bool ConvertToRgbaAlloc ( uint8_t *&  pDest,
const CImageInfo SourceImage 
)

◆ DilateImage() [1/2]

void DilateImage ( const CImageInfo Image)

◆ DilateImage() [2/2]

void DilateImage ( uint8_t *  pImageBuff,
int  w,
int  h 
)

◆ DilateImageSub()

void DilateImageSub ( uint8_t *  pImageBuff,
int  w,
int  h,
int  x,
int  y,
int  SubWidth,
int  SubHeight 
)

◆ HighestBit()

int HighestBit ( int  OfVar)

◆ ResizeImage() [1/2]

void ResizeImage ( CImageInfo Image,
int  NewWidth,
int  NewHeight 
)

◆ ResizeImage() [2/2]

uint8_t * ResizeImage ( const uint8_t *  pImageData,
int  Width,
int  Height,
int  NewWidth,
int  NewHeight,
int  BPP 
)