LMMS
Loading...
Searching...
No Matches
lice.h File Reference

Go to the source code of this file.

Classes

class  LICE_IBitmap
class  LICE_MemBitmap
class  LICE_SysBitmap
class  LICE_WrapperBitmap
class  LICE_SubBitmap
struct  _LICE_ImageLoader_rec

Macros

#define LICE_RGBA(r, g, b, a)
#define LICE_GETB(v)
#define LICE_GETG(v)
#define LICE_GETR(v)
#define LICE_GETA(v)
#define LICE_PIXEL_B   0
#define LICE_PIXEL_G   1
#define LICE_PIXEL_R   2
#define LICE_PIXEL_A   3
#define LICE_EXT_SET_SCALING   0x2000
#define LICE_EXT_GET_SCALING   0x2001
#define LICE_EXT_SET_ADVISORY_SCALING   0x2002
#define LICE_EXT_GET_ADVISORY_SCALING   0x2003
#define LICE_EXT_GET_ANY_SCALING   0x2004
#define LICE_MEMBITMAP_ALIGNAMT   63
#define LICE_BLIT_MODE_MASK   0xff
#define LICE_BLIT_MODE_COPY   0
#define LICE_BLIT_MODE_ADD   1
#define LICE_BLIT_MODE_DODGE   2
#define LICE_BLIT_MODE_MUL   3
#define LICE_BLIT_MODE_OVERLAY   4
#define LICE_BLIT_MODE_HSVADJ   5
#define LICE_BLIT_MODE_CHANCOPY   0xf0
#define LICE_BLIT_FILTER_MASK   0xff00
#define LICE_BLIT_FILTER_NONE   0
#define LICE_BLIT_FILTER_BILINEAR   0x100
#define LICE_BLIT_IGNORE_SCALING   0x20000
#define LICE_BLIT_USE_ALPHA   0x10000
#define lice_max(x, y)
#define lice_min(x, y)
#define lice_isfinite(x)
#define LICE_Scale_BitBlt(hdc, x, y, w, h, src, sx, sy, mode)

Typedefs

typedef unsigned int LICE_pixel
typedef unsigned char LICE_pixel_chan

Enumerations

enum  { NOISE_MODE_NORMAL = 0 , NOISE_MODE_WOOD }

Functions

static LICE_pixel LICE_RGBA_FROMNATIVE (LICE_pixel col, int alpha=0)
LICE_IBitmapLICE_LoadImage (const char *filename, LICE_IBitmap *bmp=NULL, bool tryIgnoreExtension=false)
char * LICE_GetImageExtensionList (bool wantAllSup=true, bool wantAllFiles=true)
bool LICE_ImageIsSupported (const char *filename)
LICE_IBitmapLICE_LoadPNG (const char *filename, LICE_IBitmap *bmp=NULL)
LICE_IBitmapLICE_LoadPNGFromMemory (const void *data_in, int buflen, LICE_IBitmap *bmp=NULL)
LICE_IBitmapLICE_LoadPNGFromResource (HINSTANCE hInst, const char *resid, LICE_IBitmap *bmp=NULL)
LICE_IBitmapLICE_LoadPNGFromNamedResource (const char *name, LICE_IBitmap *bmp=NULL)
LICE_IBitmapLICE_LoadBMP (const char *filename, LICE_IBitmap *bmp=NULL)
LICE_IBitmapLICE_LoadBMPFromResource (HINSTANCE hInst, const char *resid, LICE_IBitmap *bmp=NULL)
LICE_IBitmapLICE_LoadIcon (const char *filename, int reqiconsz=16, LICE_IBitmap *bmp=NULL)
LICE_IBitmapLICE_LoadIconFromResource (HINSTANCE hInst, const char *resid, int reqiconsz=16, LICE_IBitmap *bmp=NULL)
LICE_IBitmapLICE_LoadJPG (const char *filename, LICE_IBitmap *bmp=NULL)
LICE_IBitmapLICE_LoadJPGFromMemory (const void *data_in, int buflen, LICE_IBitmap *bmp=NULL)
LICE_IBitmapLICE_LoadJPGFromResource (HINSTANCE hInst, const char *resid, LICE_IBitmap *bmp=0)
LICE_IBitmapLICE_LoadGIF (const char *filename, LICE_IBitmap *bmp=NULL, int *nframes=NULL)
LICE_IBitmapLICE_LoadPCX (const char *filename, LICE_IBitmap *bmp=NULL)
bool LICE_WritePNG (const char *filename, LICE_IBitmap *bmp, bool wantalpha=true)
bool LICE_WriteJPG (const char *filename, LICE_IBitmap *bmp, int quality=95, bool force_baseline=true)
bool LICE_WriteGIF (const char *filename, LICE_IBitmap *bmp, int transparent_alpha=0, bool dither=true)
voidLICE_WriteGIFBegin (const char *filename, LICE_IBitmap *firstframe, int transparent_alpha=0, int frame_delay=0, bool dither=true, int nreps=0)
voidLICE_WriteGIFBeginNoFrame (const char *filename, int w, int h, int transparent_alpha=0, bool dither=true, bool is_append=false)
bool LICE_WriteGIFFrame (void *handle, LICE_IBitmap *frame, int xpos, int ypos, bool perImageColorMap=false, int frame_delay=0, int nreps=0)
unsigned int LICE_WriteGIFGetSize (void *handle)
bool LICE_WriteGIFEnd (void *handle)
int LICE_SetGIFColorMapFromOctree (void *wr, void *octree, int numcolors)
voidLICE_GIF_LoadEx (const char *filename)
void LICE_GIF_Close (void *handle)
void LICE_GIF_Rewind (void *handle)
unsigned int LICE_GIF_GetFilePos (void *handle)
int LICE_GIF_UpdateFrame (void *handle, LICE_IBitmap *bm)
void LICE_PutPixel (LICE_IBitmap *bm, int x, int y, LICE_pixel color, float alpha, int mode)
LICE_pixel LICE_GetPixel (LICE_IBitmap *bm, int x, int y)
void LICE_Copy (LICE_IBitmap *dest, LICE_IBitmap *src)
void LICE_Blit (LICE_IBitmap *dest, LICE_IBitmap *src, int dstx, int dsty, const RECT *srcrect, float alpha, int mode)
void LICE_Blit (LICE_IBitmap *dest, LICE_IBitmap *src, int dstx, int dsty, int srcx, int srcy, int srcw, int srch, float alpha, int mode)
void LICE_Blur (LICE_IBitmap *dest, LICE_IBitmap *src, int dstx, int dsty, int srcx, int srcy, int srcw, int srch)
void LICE_ScaledBlit (LICE_IBitmap *dest, LICE_IBitmap *src, int dstx, int dsty, int dstw, int dsth, float srcx, float srcy, float srcw, float srch, float alpha, int mode)
void LICE_HalveBlitAA (LICE_IBitmap *dest, LICE_IBitmap *src)
void LICE_RotatedBlit (LICE_IBitmap *dest, LICE_IBitmap *src, int dstx, int dsty, int dstw, int dsth, float srcx, float srcy, float srcw, float srch, float angle, bool cliptosourcerect, float alpha, int mode, float rotxcent=0.0, float rotycent=0.0)
void LICE_TransformBlit (LICE_IBitmap *dest, LICE_IBitmap *src, int dstx, int dsty, int dstw, int dsth, const float *srcpoints, int div_w, int div_h, float alpha, int mode)
void LICE_TransformBlit2 (LICE_IBitmap *dest, LICE_IBitmap *src, int dstx, int dsty, int dstw, int dsth, const double *srcpoints, int div_w, int div_h, float alpha, int mode)
void LICE_TransformBlit2Alpha (LICE_IBitmap *dest, LICE_IBitmap *src, int dstx, int dsty, int dstw, int dsth, const double *srcpoints, int div_w, int div_h, int mode)
void LICE_DeltaBlit (LICE_IBitmap *dest, LICE_IBitmap *src, int dstx, int dsty, int dstw, int dsth, float srcx, float srcy, float srcw, float srch, double dsdx, double dtdx, double dsdy, double dtdy, double dsdxdy, double dtdxdy, bool cliptosourcerect, float alpha, int mode)
void LICE_DeltaBlitAlpha (LICE_IBitmap *dest, LICE_IBitmap *src, int dstx, int dsty, int dstw, int dsth, float srcx, float srcy, float srcw, float srch, double dsdx, double dtdx, double dsdy, double dtdy, double dsdxdy, double dtdxdy, bool cliptosourcerect, float alpha, int mode, double dadx, double dady, double dadxdy)
void LICE_GradRect (LICE_IBitmap *dest, int dstx, int dsty, int dstw, int dsth, float ir, float ig, float ib, float ia, float drdx, float dgdx, float dbdx, float dadx, float drdy, float dgdy, float dbdy, float dady, int mode)
void LICE_FillRect (LICE_IBitmap *dest, int x, int y, int w, int h, LICE_pixel color, float alpha=1.0f, int mode=0)
void LICE_ProcessRect (LICE_IBitmap *dest, int x, int y, int w, int h, void(*procFunc)(LICE_pixel *p, void *parm), void *parm)
void LICE_Clear (LICE_IBitmap *dest, LICE_pixel color)
void LICE_ClearRect (LICE_IBitmap *dest, int x, int y, int w, int h, LICE_pixel mask=0, LICE_pixel orbits=0)
void LICE_MultiplyAddRect (LICE_IBitmap *dest, int x, int y, int w, int h, float rsc, float gsc, float bsc, float asc, float radd, float gadd, float badd, float aadd)
void LICE_SetAlphaFromColorMask (LICE_IBitmap *dest, LICE_pixel color)
void LICE_SimpleFill (LICE_IBitmap *dest, int x, int y, LICE_pixel newcolor, LICE_pixel comparemask=LICE_RGBA(255, 255, 255, 0), LICE_pixel keepmask=LICE_RGBA(0, 0, 0, 0))
void LICE_TexGen_Marble (LICE_IBitmap *dest, const RECT *rect, float rv, float gv, float bv, float intensity)
void LICE_TexGen_Noise (LICE_IBitmap *dest, const RECT *rect, float rv, float gv, float bv, float intensity, int mode=NOISE_MODE_NORMAL, int smooth=1)
void LICE_TexGen_CircNoise (LICE_IBitmap *dest, const RECT *rect, float rv, float gv, float bv, float nrings, float power, int size)
void LICE_DrawChar (LICE_IBitmap *bm, int x, int y, char c, LICE_pixel color, float alpha, int mode)
void LICE_DrawText (LICE_IBitmap *bm, int x, int y, const char *string, LICE_pixel color, float alpha, int mode)
void LICE_MeasureText (const char *string, int *w, int *h)
void LICE_Line (LICE_IBitmap *dest, int x1, int y1, int x2, int y2, LICE_pixel color, float alpha=1.0f, int mode=0, bool aa=true)
void LICE_FLine (LICE_IBitmap *dest, float x1, float y1, float x2, float y2, LICE_pixel color, float alpha=1.0f, int mode=0, bool aa=true)
void LICE_ThickFLine (LICE_IBitmap *dest, double x1, double y1, double x2, double y2, LICE_pixel color, float alpha, int mode, int wid)
void LICE_DashedLine (LICE_IBitmap *dest, int x1, int y1, int x2, int y2, int pxon, int pxoff, LICE_pixel color, float alpha=1.0f, int mode=0, bool aa=false)
void LICE_FillTrapezoidF (LICE_IBitmap *dest, double fx1a, double fx1b, int y1, double fx2a, double fx2b, int y2, LICE_pixel color, float alpha, int mode)
void LICE_FillTrapezoid (LICE_IBitmap *dest, int x1a, int x1b, int y1, int x2a, int x2b, int y2, LICE_pixel color, float alpha, int mode)
void LICE_FillConvexPolygon (LICE_IBitmap *dest, const int *x, const int *y, int npoints, LICE_pixel color, float alpha, int mode)
void LICE_FillTriangle (LICE_IBitmap *dest, int x1, int y1, int x2, int y2, int x3, int y3, LICE_pixel color, float alpha=1.0f, int mode=0)
bool LICE_ClipLine (int *pX1, int *pY1, int *pX2, int *pY2, int xLo, int yLo, int xHi, int yHi)
bool LICE_ClipFLine (float *px1, float *py1, float *px2, float *py2, float xlo, float ylo, float xhi, float yhi)
void LICE_Arc (LICE_IBitmap *dest, float cx, float cy, float r, float minAngle, float maxAngle, LICE_pixel color, float alpha=1.0f, int mode=0, bool aa=true)
void LICE_Circle (LICE_IBitmap *dest, float cx, float cy, float r, LICE_pixel color, float alpha=1.0f, int mode=0, bool aa=true)
void LICE_FillCircle (LICE_IBitmap *dest, float cx, float cy, float r, LICE_pixel color, float alpha=1.0f, int mode=0, bool aa=true)
void LICE_RoundRect (LICE_IBitmap *drawbm, float xpos, float ypos, float w, float h, int cornerradius, LICE_pixel col, float alpha, int mode, bool aa)
void LICE_DrawGlyph (LICE_IBitmap *dest, int x, int y, LICE_pixel color, const LICE_pixel_chan *alphas, int glyph_w, int glyph_h, float alpha=1.0f, int mode=0)
void LICE_DrawGlyphEx (LICE_IBitmap *dest, int x, int y, LICE_pixel color, const LICE_pixel_chan *alphas, int glyph_w, int glyph_span, int glyph_h, float alpha=1.0f, int mode=0)
void LICE_DrawMonoGlyph (LICE_IBitmap *dest, int x, int y, LICE_pixel color, const unsigned char *alphas, int glyph_w, int glyph_span, int glyph_h, float alpha=1.0f, int mode=0)
void LICE_DrawQBezier (LICE_IBitmap *dest, double xstart, double ystart, double xctl, double yctl, double xend, double yend, LICE_pixel color, float alpha=1.0f, int mode=0, bool aa=true, double tol=0.0)
void LICE_DrawCBezier (LICE_IBitmap *dest, double xstart, double ystart, double xctl1, double yctl1, double xctl2, double yctl2, double xend, double yend, LICE_pixel color, float alpha=1.0f, int mode=0, bool aa=true, double tol=0.0)
void LICE_DrawThickCBezier (LICE_IBitmap *dest, double xstart, double ystart, double xctl1, double yctl1, double xctl2, double yctl2, double xend, double yend, LICE_pixel color, float alpha=1.0f, int mode=0, int wid=2, double tol=0.0)
void LICE_FillCBezier (LICE_IBitmap *dest, double xstart, double ystart, double xctl1, double yctl1, double xctl2, double yctl2, double xend, double yend, int yfill, LICE_pixel color, float alpha=1.0f, int mode=0, double tol=0.0)
void LICE_FillCBezierX (LICE_IBitmap *dest, double xstart, double ystart, double xctl1, double yctl1, double xctl2, double yctl2, double xend, double yend, int xfill, LICE_pixel color, float alpha=1.0f, int mode=0, double tol=0.0)
void LICE_DrawRect (LICE_IBitmap *dest, int x, int y, int w, int h, LICE_pixel color, float alpha=1.0f, int mode=0)
void LICE_BorderedRect (LICE_IBitmap *dest, int x, int y, int w, int h, LICE_pixel bgcolor, LICE_pixel fgcolor, float alpha=1.0f, int mode=0)
int LICE_BitmapCmp (LICE_IBitmap *a, LICE_IBitmap *b, int *coordsOut=NULL)
int LICE_BitmapCmpEx (LICE_IBitmap *a, LICE_IBitmap *b, LICE_pixel mask, int *coordsOut=NULL)
void LICE_RGB2HSV (int r, int g, int b, int *h, int *s, int *v)
void LICE_HSV2RGB (int h, int s, int v, int *r, int *g, int *b)
LICE_pixel LICE_HSV2Pix (int h, int s, int v, int alpha)
LICE_pixel LICE_AlterColorHSV (LICE_pixel color, float d_hue, float d_saturation, float d_value)
void LICE_AlterBitmapHSV (LICE_IBitmap *src, float d_hue, float d_saturation, float d_value)
void LICE_AlterRectHSV (LICE_IBitmap *src, int x, int y, int w, int h, float d_hue, float d_saturation, float d_value, int mode=0)
LICE_pixel LICE_CombinePixels (LICE_pixel dest, LICE_pixel src, float alpha, int mode)
void LICE_CombinePixels2 (LICE_pixel *destptr, int r, int g, int b, int a, int ia, int mode)
void LICE_CombinePixels2Clamp (LICE_pixel *destptr, int r, int g, int b, int a, int ia, int mode)
voidLICE_LoadLVG (const char *filename)
voidLICE_LoadLVGFromContext (ProjectStateContext *ctx, const char *nameInfo=NULL, int defw=0, int defh=0)
voidLICE_GetSubLVG (void *lvg, const char *subname)
LICE_IBitmapLICE_RenderLVG (void *lvg, int reqw=0, int reqh=0, LICE_IBitmap *useBM=NULL)
void LICE_DestroyLVG (void *lvg)
voidLICE_CreateOctree (int maxcolors)
 palette
void LICE_DestroyOctree (void *octree)
void LICE_ResetOctree (void *octree, int maxcolors)
int LICE_BuildOctree (void *octree, LICE_IBitmap *bmp)
int LICE_BuildOctreeForAlpha (void *octree, LICE_IBitmap *bmp, unsigned int minalpha)
int LICE_BuildOctreeForDiff (void *octree, LICE_IBitmap *bmp, LICE_IBitmap *refbmp, LICE_pixel mask=LICE_RGBA(255, 255, 255, 0))
int LICE_FindInOctree (void *octree, LICE_pixel color)
int LICE_ExtractOctreePalette (void *octree, LICE_pixel *palette)
int LICE_BuildPalette (LICE_IBitmap *bmp, LICE_pixel *palette, int maxcolors)
void LICE_TestPalette (LICE_IBitmap *bmp, LICE_pixel *palette, int numcolors)

Variables

_LICE_ImageLoader_recLICE_ImageLoader_list

Macro Definition Documentation

◆ LICE_BLIT_FILTER_BILINEAR

#define LICE_BLIT_FILTER_BILINEAR   0x100

◆ LICE_BLIT_FILTER_MASK

#define LICE_BLIT_FILTER_MASK   0xff00

◆ LICE_BLIT_FILTER_NONE

#define LICE_BLIT_FILTER_NONE   0

◆ LICE_BLIT_IGNORE_SCALING

#define LICE_BLIT_IGNORE_SCALING   0x20000

◆ LICE_BLIT_MODE_ADD

#define LICE_BLIT_MODE_ADD   1

◆ LICE_BLIT_MODE_CHANCOPY

#define LICE_BLIT_MODE_CHANCOPY   0xf0

◆ LICE_BLIT_MODE_COPY

#define LICE_BLIT_MODE_COPY   0

◆ LICE_BLIT_MODE_DODGE

#define LICE_BLIT_MODE_DODGE   2

◆ LICE_BLIT_MODE_HSVADJ

#define LICE_BLIT_MODE_HSVADJ   5

◆ LICE_BLIT_MODE_MASK

#define LICE_BLIT_MODE_MASK   0xff

◆ LICE_BLIT_MODE_MUL

#define LICE_BLIT_MODE_MUL   3

◆ LICE_BLIT_MODE_OVERLAY

#define LICE_BLIT_MODE_OVERLAY   4

◆ LICE_BLIT_USE_ALPHA

#define LICE_BLIT_USE_ALPHA   0x10000

◆ LICE_EXT_GET_ADVISORY_SCALING

#define LICE_EXT_GET_ADVISORY_SCALING   0x2003

◆ LICE_EXT_GET_ANY_SCALING

#define LICE_EXT_GET_ANY_SCALING   0x2004

◆ LICE_EXT_GET_SCALING

#define LICE_EXT_GET_SCALING   0x2001

◆ LICE_EXT_SET_ADVISORY_SCALING

#define LICE_EXT_SET_ADVISORY_SCALING   0x2002

◆ LICE_EXT_SET_SCALING

#define LICE_EXT_SET_SCALING   0x2000

◆ LICE_GETA

#define LICE_GETA ( v)
Value:
(((v)>>24)&0xff)
unsigned v[N_MAX]
Definition inflate.c:1584

◆ LICE_GETB

#define LICE_GETB ( v)
Value:
((v)&0xff)

◆ LICE_GETG

#define LICE_GETG ( v)
Value:
(((v)>>8)&0xff)

◆ LICE_GETR

#define LICE_GETR ( v)
Value:
(((v)>>16)&0xff)

◆ lice_isfinite

#define lice_isfinite ( x)
Value:
isfinite(x)
unsigned x[BMAX+1]
Definition inflate.c:1586

◆ lice_max

#define lice_max ( x,
y )
Value:
((x)<(y)?(y):(x))
int y
Definition inflate.c:1588

◆ LICE_MEMBITMAP_ALIGNAMT

#define LICE_MEMBITMAP_ALIGNAMT   63

◆ lice_min

#define lice_min ( x,
y )
Value:
((x)<(y)?(x):(y))

◆ LICE_PIXEL_A

#define LICE_PIXEL_A   3

◆ LICE_PIXEL_B

#define LICE_PIXEL_B   0

◆ LICE_PIXEL_G

#define LICE_PIXEL_G   1

◆ LICE_PIXEL_R

#define LICE_PIXEL_R   2

◆ LICE_RGBA

#define LICE_RGBA ( r,
g,
b,
a )
Value:
(((b)&0xff)|(((g)&0xff)<<8)|(((r)&0xff)<<16)|(((a)&0xff)<<24))
uint8_t a
Definition Spc_Cpu.h:141
int g
Definition inflate.c:1573
int r
Definition crypt.c:458
b
Definition crypt.c:628

◆ LICE_Scale_BitBlt

#define LICE_Scale_BitBlt ( hdc,
x,
y,
w,
h,
src,
sx,
sy,
mode )
Value:
BitBlt(hdc,x,y,w,h,(src)->getDC(),sx,sy,mode)
UINT_D64 w
Definition inflate.c:942
png_structrp int mode
Definition png.h:1139
void BitBlt(HDC hdcOut, int x, int y, int w, int h, HDC hdcIn, int xin, int yin, int mode)
Definition swell-gdi-generic.cpp:498
uch h[RAND_HEAD_LEN]
Definition crypt.c:459

Typedef Documentation

◆ LICE_pixel

typedef unsigned int LICE_pixel

◆ LICE_pixel_chan

typedef unsigned char LICE_pixel_chan

Enumeration Type Documentation

◆ anonymous enum

anonymous enum
Enumerator
NOISE_MODE_NORMAL 
NOISE_MODE_WOOD 

Function Documentation

◆ LICE_AlterBitmapHSV()

void LICE_AlterBitmapHSV ( LICE_IBitmap * src,
float d_hue,
float d_saturation,
float d_value )

◆ LICE_AlterColorHSV()

LICE_pixel LICE_AlterColorHSV ( LICE_pixel color,
float d_hue,
float d_saturation,
float d_value )

◆ LICE_AlterRectHSV()

void LICE_AlterRectHSV ( LICE_IBitmap * src,
int x,
int y,
int w,
int h,
float d_hue,
float d_saturation,
float d_value,
int mode = 0 )

◆ LICE_Arc()

void LICE_Arc ( LICE_IBitmap * dest,
float cx,
float cy,
float r,
float minAngle,
float maxAngle,
LICE_pixel color,
float alpha = 1.0f,
int mode = 0,
bool aa = true )

◆ LICE_BitmapCmp()

int LICE_BitmapCmp ( LICE_IBitmap * a,
LICE_IBitmap * b,
int * coordsOut = NULL )

◆ LICE_BitmapCmpEx()

int LICE_BitmapCmpEx ( LICE_IBitmap * a,
LICE_IBitmap * b,
LICE_pixel mask,
int * coordsOut = NULL )

◆ LICE_Blit() [1/2]

void LICE_Blit ( LICE_IBitmap * dest,
LICE_IBitmap * src,
int dstx,
int dsty,
const RECT * srcrect,
float alpha,
int mode )

◆ LICE_Blit() [2/2]

void LICE_Blit ( LICE_IBitmap * dest,
LICE_IBitmap * src,
int dstx,
int dsty,
int srcx,
int srcy,
int srcw,
int srch,
float alpha,
int mode )

◆ LICE_Blur()

void LICE_Blur ( LICE_IBitmap * dest,
LICE_IBitmap * src,
int dstx,
int dsty,
int srcx,
int srcy,
int srcw,
int srch )

◆ LICE_BorderedRect()

void LICE_BorderedRect ( LICE_IBitmap * dest,
int x,
int y,
int w,
int h,
LICE_pixel bgcolor,
LICE_pixel fgcolor,
float alpha = 1.0f,
int mode = 0 )

◆ LICE_BuildOctree()

int LICE_BuildOctree ( void * octree,
LICE_IBitmap * bmp )

◆ LICE_BuildOctreeForAlpha()

int LICE_BuildOctreeForAlpha ( void * octree,
LICE_IBitmap * bmp,
unsigned int minalpha )

◆ LICE_BuildOctreeForDiff()

int LICE_BuildOctreeForDiff ( void * octree,
LICE_IBitmap * bmp,
LICE_IBitmap * refbmp,
LICE_pixel mask = LICE_RGBA(255, 255, 255, 0) )

◆ LICE_BuildPalette()

int LICE_BuildPalette ( LICE_IBitmap * bmp,
LICE_pixel * palette,
int maxcolors )

◆ LICE_Circle()

void LICE_Circle ( LICE_IBitmap * dest,
float cx,
float cy,
float r,
LICE_pixel color,
float alpha = 1.0f,
int mode = 0,
bool aa = true )

◆ LICE_Clear()

void LICE_Clear ( LICE_IBitmap * dest,
LICE_pixel color )

◆ LICE_ClearRect()

void LICE_ClearRect ( LICE_IBitmap * dest,
int x,
int y,
int w,
int h,
LICE_pixel mask = 0,
LICE_pixel orbits = 0 )

◆ LICE_ClipFLine()

bool LICE_ClipFLine ( float * px1,
float * py1,
float * px2,
float * py2,
float xlo,
float ylo,
float xhi,
float yhi )

◆ LICE_ClipLine()

bool LICE_ClipLine ( int * pX1,
int * pY1,
int * pX2,
int * pY2,
int xLo,
int yLo,
int xHi,
int yHi )

◆ LICE_CombinePixels()

LICE_pixel LICE_CombinePixels ( LICE_pixel dest,
LICE_pixel src,
float alpha,
int mode )

◆ LICE_CombinePixels2()

void LICE_CombinePixels2 ( LICE_pixel * destptr,
int r,
int g,
int b,
int a,
int ia,
int mode )

◆ LICE_CombinePixels2Clamp()

void LICE_CombinePixels2Clamp ( LICE_pixel * destptr,
int r,
int g,
int b,
int a,
int ia,
int mode )

◆ LICE_Copy()

void LICE_Copy ( LICE_IBitmap * dest,
LICE_IBitmap * src )

◆ LICE_CreateOctree()

void * LICE_CreateOctree ( int maxcolors)

palette

◆ LICE_DashedLine()

void LICE_DashedLine ( LICE_IBitmap * dest,
int x1,
int y1,
int x2,
int y2,
int pxon,
int pxoff,
LICE_pixel color,
float alpha = 1.0f,
int mode = 0,
bool aa = false )

◆ LICE_DeltaBlit()

void LICE_DeltaBlit ( LICE_IBitmap * dest,
LICE_IBitmap * src,
int dstx,
int dsty,
int dstw,
int dsth,
float srcx,
float srcy,
float srcw,
float srch,
double dsdx,
double dtdx,
double dsdy,
double dtdy,
double dsdxdy,
double dtdxdy,
bool cliptosourcerect,
float alpha,
int mode )

◆ LICE_DeltaBlitAlpha()

void LICE_DeltaBlitAlpha ( LICE_IBitmap * dest,
LICE_IBitmap * src,
int dstx,
int dsty,
int dstw,
int dsth,
float srcx,
float srcy,
float srcw,
float srch,
double dsdx,
double dtdx,
double dsdy,
double dtdy,
double dsdxdy,
double dtdxdy,
bool cliptosourcerect,
float alpha,
int mode,
double dadx,
double dady,
double dadxdy )

◆ LICE_DestroyLVG()

void LICE_DestroyLVG ( void * lvg)

◆ LICE_DestroyOctree()

void LICE_DestroyOctree ( void * octree)

◆ LICE_DrawCBezier()

void LICE_DrawCBezier ( LICE_IBitmap * dest,
double xstart,
double ystart,
double xctl1,
double yctl1,
double xctl2,
double yctl2,
double xend,
double yend,
LICE_pixel color,
float alpha = 1.0f,
int mode = 0,
bool aa = true,
double tol = 0.0 )

◆ LICE_DrawChar()

void LICE_DrawChar ( LICE_IBitmap * bm,
int x,
int y,
char c,
LICE_pixel color,
float alpha,
int mode )

◆ LICE_DrawGlyph()

void LICE_DrawGlyph ( LICE_IBitmap * dest,
int x,
int y,
LICE_pixel color,
const LICE_pixel_chan * alphas,
int glyph_w,
int glyph_h,
float alpha = 1.0f,
int mode = 0 )

◆ LICE_DrawGlyphEx()

void LICE_DrawGlyphEx ( LICE_IBitmap * dest,
int x,
int y,
LICE_pixel color,
const LICE_pixel_chan * alphas,
int glyph_w,
int glyph_span,
int glyph_h,
float alpha = 1.0f,
int mode = 0 )

◆ LICE_DrawMonoGlyph()

void LICE_DrawMonoGlyph ( LICE_IBitmap * dest,
int x,
int y,
LICE_pixel color,
const unsigned char * alphas,
int glyph_w,
int glyph_span,
int glyph_h,
float alpha = 1.0f,
int mode = 0 )

◆ LICE_DrawQBezier()

void LICE_DrawQBezier ( LICE_IBitmap * dest,
double xstart,
double ystart,
double xctl,
double yctl,
double xend,
double yend,
LICE_pixel color,
float alpha = 1.0f,
int mode = 0,
bool aa = true,
double tol = 0.0 )

◆ LICE_DrawRect()

void LICE_DrawRect ( LICE_IBitmap * dest,
int x,
int y,
int w,
int h,
LICE_pixel color,
float alpha = 1.0f,
int mode = 0 )

◆ LICE_DrawText()

void LICE_DrawText ( LICE_IBitmap * bm,
int x,
int y,
const char * string,
LICE_pixel color,
float alpha,
int mode )

◆ LICE_DrawThickCBezier()

void LICE_DrawThickCBezier ( LICE_IBitmap * dest,
double xstart,
double ystart,
double xctl1,
double yctl1,
double xctl2,
double yctl2,
double xend,
double yend,
LICE_pixel color,
float alpha = 1.0f,
int mode = 0,
int wid = 2,
double tol = 0.0 )

◆ LICE_ExtractOctreePalette()

int LICE_ExtractOctreePalette ( void * octree,
LICE_pixel * palette )

◆ LICE_FillCBezier()

void LICE_FillCBezier ( LICE_IBitmap * dest,
double xstart,
double ystart,
double xctl1,
double yctl1,
double xctl2,
double yctl2,
double xend,
double yend,
int yfill,
LICE_pixel color,
float alpha = 1.0f,
int mode = 0,
double tol = 0.0 )

◆ LICE_FillCBezierX()

void LICE_FillCBezierX ( LICE_IBitmap * dest,
double xstart,
double ystart,
double xctl1,
double yctl1,
double xctl2,
double yctl2,
double xend,
double yend,
int xfill,
LICE_pixel color,
float alpha = 1.0f,
int mode = 0,
double tol = 0.0 )

◆ LICE_FillCircle()

void LICE_FillCircle ( LICE_IBitmap * dest,
float cx,
float cy,
float r,
LICE_pixel color,
float alpha = 1.0f,
int mode = 0,
bool aa = true )

◆ LICE_FillConvexPolygon()

void LICE_FillConvexPolygon ( LICE_IBitmap * dest,
const int * x,
const int * y,
int npoints,
LICE_pixel color,
float alpha,
int mode )

◆ LICE_FillRect()

void LICE_FillRect ( LICE_IBitmap * dest,
int x,
int y,
int w,
int h,
LICE_pixel color,
float alpha = 1.0f,
int mode = 0 )

◆ LICE_FillTrapezoid()

void LICE_FillTrapezoid ( LICE_IBitmap * dest,
int x1a,
int x1b,
int y1,
int x2a,
int x2b,
int y2,
LICE_pixel color,
float alpha,
int mode )

◆ LICE_FillTrapezoidF()

void LICE_FillTrapezoidF ( LICE_IBitmap * dest,
double fx1a,
double fx1b,
int y1,
double fx2a,
double fx2b,
int y2,
LICE_pixel color,
float alpha,
int mode )

◆ LICE_FillTriangle()

void LICE_FillTriangle ( LICE_IBitmap * dest,
int x1,
int y1,
int x2,
int y2,
int x3,
int y3,
LICE_pixel color,
float alpha = 1.0f,
int mode = 0 )

◆ LICE_FindInOctree()

int LICE_FindInOctree ( void * octree,
LICE_pixel color )

◆ LICE_FLine()

void LICE_FLine ( LICE_IBitmap * dest,
float x1,
float y1,
float x2,
float y2,
LICE_pixel color,
float alpha = 1.0f,
int mode = 0,
bool aa = true )

◆ LICE_GetImageExtensionList()

char * LICE_GetImageExtensionList ( bool wantAllSup = true,
bool wantAllFiles = true )

◆ LICE_GetPixel()

LICE_pixel LICE_GetPixel ( LICE_IBitmap * bm,
int x,
int y )

◆ LICE_GetSubLVG()

void * LICE_GetSubLVG ( void * lvg,
const char * subname )

◆ LICE_GIF_Close()

void LICE_GIF_Close ( void * handle)

◆ LICE_GIF_GetFilePos()

unsigned int LICE_GIF_GetFilePos ( void * handle)

◆ LICE_GIF_LoadEx()

void * LICE_GIF_LoadEx ( const char * filename)

◆ LICE_GIF_Rewind()

void LICE_GIF_Rewind ( void * handle)

◆ LICE_GIF_UpdateFrame()

int LICE_GIF_UpdateFrame ( void * handle,
LICE_IBitmap * bm )

◆ LICE_GradRect()

void LICE_GradRect ( LICE_IBitmap * dest,
int dstx,
int dsty,
int dstw,
int dsth,
float ir,
float ig,
float ib,
float ia,
float drdx,
float dgdx,
float dbdx,
float dadx,
float drdy,
float dgdy,
float dbdy,
float dady,
int mode )

◆ LICE_HalveBlitAA()

void LICE_HalveBlitAA ( LICE_IBitmap * dest,
LICE_IBitmap * src )

◆ LICE_HSV2Pix()

LICE_pixel LICE_HSV2Pix ( int h,
int s,
int v,
int alpha )

◆ LICE_HSV2RGB()

void LICE_HSV2RGB ( int h,
int s,
int v,
int * r,
int * g,
int * b )

◆ LICE_ImageIsSupported()

bool LICE_ImageIsSupported ( const char * filename)

◆ LICE_Line()

void LICE_Line ( LICE_IBitmap * dest,
int x1,
int y1,
int x2,
int y2,
LICE_pixel color,
float alpha = 1.0f,
int mode = 0,
bool aa = true )

◆ LICE_LoadBMP()

LICE_IBitmap * LICE_LoadBMP ( const char * filename,
LICE_IBitmap * bmp = NULL )

◆ LICE_LoadBMPFromResource()

LICE_IBitmap * LICE_LoadBMPFromResource ( HINSTANCE hInst,
const char * resid,
LICE_IBitmap * bmp = NULL )

◆ LICE_LoadGIF()

LICE_IBitmap * LICE_LoadGIF ( const char * filename,
LICE_IBitmap * bmp = NULL,
int * nframes = NULL )

◆ LICE_LoadIcon()

LICE_IBitmap * LICE_LoadIcon ( const char * filename,
int reqiconsz = 16,
LICE_IBitmap * bmp = NULL )

◆ LICE_LoadIconFromResource()

LICE_IBitmap * LICE_LoadIconFromResource ( HINSTANCE hInst,
const char * resid,
int reqiconsz = 16,
LICE_IBitmap * bmp = NULL )

◆ LICE_LoadImage()

LICE_IBitmap * LICE_LoadImage ( const char * filename,
LICE_IBitmap * bmp = NULL,
bool tryIgnoreExtension = false )

◆ LICE_LoadJPG()

LICE_IBitmap * LICE_LoadJPG ( const char * filename,
LICE_IBitmap * bmp = NULL )

◆ LICE_LoadJPGFromMemory()

LICE_IBitmap * LICE_LoadJPGFromMemory ( const void * data_in,
int buflen,
LICE_IBitmap * bmp = NULL )

◆ LICE_LoadJPGFromResource()

LICE_IBitmap * LICE_LoadJPGFromResource ( HINSTANCE hInst,
const char * resid,
LICE_IBitmap * bmp = 0 )

◆ LICE_LoadLVG()

void * LICE_LoadLVG ( const char * filename)

◆ LICE_LoadLVGFromContext()

void * LICE_LoadLVGFromContext ( ProjectStateContext * ctx,
const char * nameInfo = NULL,
int defw = 0,
int defh = 0 )

◆ LICE_LoadPCX()

LICE_IBitmap * LICE_LoadPCX ( const char * filename,
LICE_IBitmap * bmp = NULL )

◆ LICE_LoadPNG()

LICE_IBitmap * LICE_LoadPNG ( const char * filename,
LICE_IBitmap * bmp = NULL )

◆ LICE_LoadPNGFromMemory()

LICE_IBitmap * LICE_LoadPNGFromMemory ( const void * data_in,
int buflen,
LICE_IBitmap * bmp = NULL )

◆ LICE_LoadPNGFromNamedResource()

LICE_IBitmap * LICE_LoadPNGFromNamedResource ( const char * name,
LICE_IBitmap * bmp = NULL )

◆ LICE_LoadPNGFromResource()

LICE_IBitmap * LICE_LoadPNGFromResource ( HINSTANCE hInst,
const char * resid,
LICE_IBitmap * bmp = NULL )

◆ LICE_MeasureText()

void LICE_MeasureText ( const char * string,
int * w,
int * h )

◆ LICE_MultiplyAddRect()

void LICE_MultiplyAddRect ( LICE_IBitmap * dest,
int x,
int y,
int w,
int h,
float rsc,
float gsc,
float bsc,
float asc,
float radd,
float gadd,
float badd,
float aadd )

◆ LICE_ProcessRect()

void LICE_ProcessRect ( LICE_IBitmap * dest,
int x,
int y,
int w,
int h,
void(* procFunc )(LICE_pixel *p, void *parm),
void * parm )

◆ LICE_PutPixel()

void LICE_PutPixel ( LICE_IBitmap * bm,
int x,
int y,
LICE_pixel color,
float alpha,
int mode )

◆ LICE_RenderLVG()

LICE_IBitmap * LICE_RenderLVG ( void * lvg,
int reqw = 0,
int reqh = 0,
LICE_IBitmap * useBM = NULL )

◆ LICE_ResetOctree()

void LICE_ResetOctree ( void * octree,
int maxcolors )

◆ LICE_RGB2HSV()

void LICE_RGB2HSV ( int r,
int g,
int b,
int * h,
int * s,
int * v )

◆ LICE_RGBA_FROMNATIVE()

LICE_pixel LICE_RGBA_FROMNATIVE ( LICE_pixel col,
int alpha = 0 )
inlinestatic

◆ LICE_RotatedBlit()

void LICE_RotatedBlit ( LICE_IBitmap * dest,
LICE_IBitmap * src,
int dstx,
int dsty,
int dstw,
int dsth,
float srcx,
float srcy,
float srcw,
float srch,
float angle,
bool cliptosourcerect,
float alpha,
int mode,
float rotxcent = 0.0,
float rotycent = 0.0 )

◆ LICE_RoundRect()

void LICE_RoundRect ( LICE_IBitmap * drawbm,
float xpos,
float ypos,
float w,
float h,
int cornerradius,
LICE_pixel col,
float alpha,
int mode,
bool aa )

◆ LICE_ScaledBlit()

void LICE_ScaledBlit ( LICE_IBitmap * dest,
LICE_IBitmap * src,
int dstx,
int dsty,
int dstw,
int dsth,
float srcx,
float srcy,
float srcw,
float srch,
float alpha,
int mode )

◆ LICE_SetAlphaFromColorMask()

void LICE_SetAlphaFromColorMask ( LICE_IBitmap * dest,
LICE_pixel color )

◆ LICE_SetGIFColorMapFromOctree()

int LICE_SetGIFColorMapFromOctree ( void * wr,
void * octree,
int numcolors )

◆ LICE_SimpleFill()

void LICE_SimpleFill ( LICE_IBitmap * dest,
int x,
int y,
LICE_pixel newcolor,
LICE_pixel comparemask = LICE_RGBA(255, 255, 255, 0),
LICE_pixel keepmask = LICE_RGBA(0, 0, 0, 0) )

◆ LICE_TestPalette()

void LICE_TestPalette ( LICE_IBitmap * bmp,
LICE_pixel * palette,
int numcolors )

◆ LICE_TexGen_CircNoise()

void LICE_TexGen_CircNoise ( LICE_IBitmap * dest,
const RECT * rect,
float rv,
float gv,
float bv,
float nrings,
float power,
int size )

◆ LICE_TexGen_Marble()

void LICE_TexGen_Marble ( LICE_IBitmap * dest,
const RECT * rect,
float rv,
float gv,
float bv,
float intensity )

◆ LICE_TexGen_Noise()

void LICE_TexGen_Noise ( LICE_IBitmap * dest,
const RECT * rect,
float rv,
float gv,
float bv,
float intensity,
int mode = NOISE_MODE_NORMAL,
int smooth = 1 )

◆ LICE_ThickFLine()

void LICE_ThickFLine ( LICE_IBitmap * dest,
double x1,
double y1,
double x2,
double y2,
LICE_pixel color,
float alpha,
int mode,
int wid )

◆ LICE_TransformBlit()

void LICE_TransformBlit ( LICE_IBitmap * dest,
LICE_IBitmap * src,
int dstx,
int dsty,
int dstw,
int dsth,
const float * srcpoints,
int div_w,
int div_h,
float alpha,
int mode )

◆ LICE_TransformBlit2()

void LICE_TransformBlit2 ( LICE_IBitmap * dest,
LICE_IBitmap * src,
int dstx,
int dsty,
int dstw,
int dsth,
const double * srcpoints,
int div_w,
int div_h,
float alpha,
int mode )

◆ LICE_TransformBlit2Alpha()

void LICE_TransformBlit2Alpha ( LICE_IBitmap * dest,
LICE_IBitmap * src,
int dstx,
int dsty,
int dstw,
int dsth,
const double * srcpoints,
int div_w,
int div_h,
int mode )

◆ LICE_WriteGIF()

bool LICE_WriteGIF ( const char * filename,
LICE_IBitmap * bmp,
int transparent_alpha = 0,
bool dither = true )

◆ LICE_WriteGIFBegin()

void * LICE_WriteGIFBegin ( const char * filename,
LICE_IBitmap * firstframe,
int transparent_alpha = 0,
int frame_delay = 0,
bool dither = true,
int nreps = 0 )

◆ LICE_WriteGIFBeginNoFrame()

void * LICE_WriteGIFBeginNoFrame ( const char * filename,
int w,
int h,
int transparent_alpha = 0,
bool dither = true,
bool is_append = false )

◆ LICE_WriteGIFEnd()

bool LICE_WriteGIFEnd ( void * handle)

◆ LICE_WriteGIFFrame()

bool LICE_WriteGIFFrame ( void * handle,
LICE_IBitmap * frame,
int xpos,
int ypos,
bool perImageColorMap = false,
int frame_delay = 0,
int nreps = 0 )

◆ LICE_WriteGIFGetSize()

unsigned int LICE_WriteGIFGetSize ( void * handle)

◆ LICE_WriteJPG()

bool LICE_WriteJPG ( const char * filename,
LICE_IBitmap * bmp,
int quality = 95,
bool force_baseline = true )

◆ LICE_WritePNG()

bool LICE_WritePNG ( const char * filename,
LICE_IBitmap * bmp,
bool wantalpha = true )

Variable Documentation

◆ LICE_ImageLoader_list

_LICE_ImageLoader_rec* LICE_ImageLoader_list
extern