XenevaOS
Loading...
Searching...
No Matches
Functions
paint_tools.h File Reference
#include <stdint.h>
#include <stdbool.h>
#include "paint_types.h"
Include dependency graph for paint_tools.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Functions

void PaintSetPixel (uint32_t *buffer, int bufW, int bufH, int x, int y, uint32_t color)
 
uint32_t PaintGetPixel (const uint32_t *buffer, int bufW, int bufH, int x, int y)
 
void PaintStampDisc (uint32_t *buffer, int bufW, int bufH, int cx, int cy, int radius, uint32_t color)
 
void PaintStampSquare (uint32_t *buffer, int bufW, int bufH, int cx, int cy, int size, uint32_t color)
 
void PaintEraseLine (uint32_t *buffer, int bufW, int bufH, int x0, int y0, int x1, int y1, int size, uint32_t color)
 
void PaintDrawBresenhamLine (uint32_t *buffer, int bufW, int bufH, int x0, int y0, int x1, int y1, int strokeWidth, uint32_t color)
 
void PaintDrawRectOutline (uint32_t *buffer, int bufW, int bufH, int x0, int y0, int x1, int y1, int strokeWidth, uint32_t color)
 
void PaintDrawRectFilled (uint32_t *buffer, int bufW, int bufH, int x0, int y0, int x1, int y1, uint32_t fillColor, uint32_t outlineColor, int strokeWidth)
 
void PaintDrawMidpointCircle (uint32_t *buffer, int bufW, int bufH, int x0, int y0, int x1, int y1, int strokeWidth, uint32_t color, bool lockAspect)
 
void PaintDrawFilledCircle (uint32_t *buffer, int bufW, int bufH, int x0, int y0, int x1, int y1, uint32_t fillColor, uint32_t outlineColor, int strokeWidth, bool lockAspect)
 
void PaintScanlineFloodFill (uint32_t *buffer, int bufW, int bufH, int startX, int startY, uint32_t fillColor)
 
void PaintInvertColors (uint32_t *buffer, int bufW, int bufH)
 
void PaintClearCanvas (uint32_t *buffer, int bufW, int bufH, uint32_t clearColor)
 

Function Documentation

◆ PaintClearCanvas()

void PaintClearCanvas ( uint32_t *  buffer,
int  bufW,
int  bufH,
uint32_t  clearColor 
)

◆ PaintDrawBresenhamLine()

void PaintDrawBresenhamLine ( uint32_t *  buffer,
int  bufW,
int  bufH,
int  x0,
int  y0,
int  x1,
int  y1,
int  strokeWidth,
uint32_t  color 
)

◆ PaintDrawFilledCircle()

void PaintDrawFilledCircle ( uint32_t *  buffer,
int  bufW,
int  bufH,
int  x0,
int  y0,
int  x1,
int  y1,
uint32_t  fillColor,
uint32_t  outlineColor,
int  strokeWidth,
bool  lockAspect 
)

◆ PaintDrawMidpointCircle()

void PaintDrawMidpointCircle ( uint32_t *  buffer,
int  bufW,
int  bufH,
int  x0,
int  y0,
int  x1,
int  y1,
int  strokeWidth,
uint32_t  color,
bool  lockAspect 
)

◆ PaintDrawRectFilled()

void PaintDrawRectFilled ( uint32_t *  buffer,
int  bufW,
int  bufH,
int  x0,
int  y0,
int  x1,
int  y1,
uint32_t  fillColor,
uint32_t  outlineColor,
int  strokeWidth 
)

◆ PaintDrawRectOutline()

void PaintDrawRectOutline ( uint32_t *  buffer,
int  bufW,
int  bufH,
int  x0,
int  y0,
int  x1,
int  y1,
int  strokeWidth,
uint32_t  color 
)

◆ PaintEraseLine()

void PaintEraseLine ( uint32_t *  buffer,
int  bufW,
int  bufH,
int  x0,
int  y0,
int  x1,
int  y1,
int  size,
uint32_t  color 
)

◆ PaintGetPixel()

uint32_t PaintGetPixel ( const uint32_t *  buffer,
int  bufW,
int  bufH,
int  x,
int  y 
)

◆ PaintInvertColors()

void PaintInvertColors ( uint32_t *  buffer,
int  bufW,
int  bufH 
)

◆ PaintScanlineFloodFill()

void PaintScanlineFloodFill ( uint32_t *  buffer,
int  bufW,
int  bufH,
int  startX,
int  startY,
uint32_t  fillColor 
)

◆ PaintSetPixel()

void PaintSetPixel ( uint32_t *  buffer,
int  bufW,
int  bufH,
int  x,
int  y,
uint32_t  color 
)

◆ PaintStampDisc()

void PaintStampDisc ( uint32_t *  buffer,
int  bufW,
int  bufH,
int  cx,
int  cy,
int  radius,
uint32_t  color 
)

◆ PaintStampSquare()

void PaintStampSquare ( uint32_t *  buffer,
int  bufW,
int  bufH,
int  cx,
int  cy,
int  size,
uint32_t  color 
)