BitmapToolkit Scol plugin
|
Functions | |
int | _CRBTmat (mmachine m) |
_CRBTmat : Creates a ObjBTMat object from an AlphaBitmap Prototype: fun [Chn AlphaBitmap] ObjBTMat | |
int | _DSBTmat (mmachine m) |
_DSBTmat : Deletes a cv mat object Prototype: fun [ObjBTMat] I | |
int | _BTGETmatBuffer (mmachine m) |
_BTGETmatBuffer : Get a cv mat buffer Prototype: fun [ObjBTMat] ObjBuff | |
int | _BTBLURbitmap (mmachine m) |
_BTBLURbitmap : This function apply a blur on a bitmap Prototype: fun [ObjBitmap I I] ObjBitmap | |
int | _BTBLURbitmapBuffer (mmachine m) |
_BTBLURbitmapBuffer : This function apply a blur on a bitmap buffer Prototype: fun [ObjBuff I I I I I] ObjBuff | |
int | _BTFILTERbitmap (mmachine m) |
_BTFILTERbitmap : This function apply a kernel filter on a bitmap Prototype: fun [ObjBitmap tab tab F] ObjBitmap | |
int | _BTFILTERbitmapBuffer (mmachine m) |
_BTFILTERbitmapBuffer : This function apply a kernel filter on a bitmap buffer Prototype: fun [ObjBuff I I I tab tab F] ObjBuff | |
int | _BTBRIGHTNESSbitmap (mmachine m) |
_BTBRIGHTNESSbitmap : This function change the brightness of a bitmap Prototype: fun [ObjBitmap I] ObjBitmap | |
int | _BTBRIGHTNESSbitmapBuffer (mmachine m) |
_BTBRIGHTNESSbitmapBuffer : This function change the brightness of a bitmap buffer Prototype: fun [ObjBuff I I I I] ObjBuff | |
int | _BTLAPLACEbitmap (mmachine m) |
_BTLAPLACEbitmap : This function apply a LAPLACE filter on a bitmap Prototype: fun [ObjBitmap I I] ObjBitmap | |
int | _BTLAPLACEbitmapBuffer (mmachine m) |
_BTLAPLACEbitmapBuffer : This function apply LAPLACE filter on a bitmap buffer Prototype: fun [ObjBuff I I I I I] ObjBuff | |
int | _BTFLIPbitmap (mmachine m) |
_BTFLIPbitmap : This function apply vertical flip on a bitmap Prototype: fun [ObjBitmap] ObjBitmap | |
int | _BTFLIPbuffer (mmachine m) |
_BTFLIPbuffer : This function apply vertical flip on a pixel buffer Prototype: fun [ObjBuff I I I] ObjBuff | |
int | _BTNORMALbitmap (mmachine m) |
_BTNORMALbitmap : This function convert an height map to a normal map bitmap Prototype: fun [ObjBitmap F F] ObjBitmap | |
int | _BTNORMALbitmapBuffer (mmachine m) |
_BTNORMALbitmapBuffer :This function convert an height map to a normal map bitmap Prototype: fun [ObjBuff I I I F F] ObjBuff | |
int | _BTDRAWcircle (mmachine m) |
_BTDRAWcircle : This function draw a circle into a bitmap Prototype: fun [ObjBitmap [I I] I I I I I] ObjBitmap | |
int | _BTDRAWcircleBuffer (mmachine m) |
_BTDRAWcircleBuffer : This function draw a circle into a bitmap buffer Prototype: fun [ObjBuff I I I [I I] I I I I I] ObjBuff | |
int | _BTDRAWrect (mmachine m) |
_BTDRAWrect : This function draw a rectangle into a bitmap Prototype: fun [ObjBitmap [I I I I] I I I I] ObjBitmap | |
int | _BTDRAWrectBuffer (mmachine m) |
_BTDRAWrectBuffer : This function draw a rectangle into a bitmap buffer Prototype: fun [ObjBuff I I I [I I I I] I I I I] ObjBuff | |
int | _BTDRAWline (mmachine m) |
_BTDRAWline : This function draw a line into a bitmap Prototype: fun [ObjBitmap [I I] [I I] I I] ObjBitmap | |
int | _BTDRAWlineBuffer (mmachine m) |
_BTDRAWlineBuffer : This function draw a line into a bitmap buffer Prototype: fun [ObjBuff I I I [I I] [I I] I I] ObjBuff | |
int | _BTDRAWpath (mmachine m) |
_BTDRAWpath : This function draw a path into a bitmap Prototype: fun [ObjBitmap [[I I] r1] I I] ObjBitmap | |
int | _BTDRAWpathBuffer (mmachine m) |
_BTDRAWpathBuffer : This function draw a line into a bitmap buffer Prototype: fun [ObjBuff I I I [[I I] r1] I I] ObjBuff | |
int | _BTMOTIONdetect (mmachine m) |
_BTMOTIONdetect : This function detect the motion between two bitmaps Prototype: fun [ObjBitmap ObjBitmap I I] I | |
int | _BTCompBitmap (mmachine m) |
_BTCompBitmap : This function compress a bitmap and return the buffer as string Prototype: fun [ObjBitmap I] S | |
int | _BTUnCompBitmap (mmachine m) |
_BTUnCompBitmap : This function uncompress a bitmap data to an existed bitmap Prototype: fun [S ObjBitmap] S | |
int | _BTSCALEbitmap (mmachine m) |
_BTSCALEbitmap : This function scale a bitmap to an another bitmap Prototype: fun [ObjBitmap ObjBitmap I] ObjBitmap | |
int | _BTSCALEalphaBitmap (mmachine m) |
_BTSCALEalphaBitmap : This function scale an alpha bitmap to an another alpha bitmap Prototype: fun [AlphaBitmap AlphaBitmap I] AlphaBitmap | |
int | _BTSCALEbitmapBuffer (mmachine m) |
_BTSCALEbitmapBuffer : This function scale a bitmap to an another bitmap Prototype: fun [ObjBuff I I I ObjBuff I I I I] ObjBitmap | |
int | _BTSAVEbitmap (mmachine m) |
_BTSAVEbitmap : This function saves a scol RGB bitmap to a defined path. The format is defined by the extension you write in path Prototype: fun [ObjBitmap W] P | |
int | _BTSAVEalphaBitmap (mmachine m) |
_BTSAVEbitmapWithAlpha : This function saves a scol RGB bitmap with alpha bitmap to a defined path. The format is defined by the extension you write in path Prototype: fun [AlphaBitmap W] P | |
int | _BTLOADbitmap (mmachine m) |
_BTLOADbitmap : This function loads an RGB bitmap from a defined path. Prototype: fun [Chn P] ObjBitmap | |
int | _BTBLENDbitmaps (mmachine m) |
_BTBLENDbitmaps : blends 2 bitmaps from percentage value. Takes a piece of the src to blit it in a piece of the dest. Resizing involved. Prototype: fun [ObjBitmap [I I I I] ObjBitmap [I I I I] F] ObjBitmap | |
int | _BTBLENDalphaBitmaps (mmachine m) |
_BTBLENDalphaBitmaps : blends 2 alpha bitmaps. Takes a piece of the src to blit it in a piece of the dest. Resizing involved. Prototype: fun [AlphaBitmap [I I I I] AlphaBitmap [I I I I] F] AlphaBitmap | |
int | _BTBLENDbitmapsBuffer (mmachine m) |
_BTBLENDbitmapsBuffer : blends 2 bitmaps buffer from percentage value. Takes a piece of the src to blit it in a piece of the dest. Resizing involved. Prototype: fun [ObjBuff I I I [I I I I] ObjBuff I I I [I I I I] F] ObjBuff | |
int | _BTCPbitmapRect (mmachine m) |
_BTCPbitmapRect : copy a bitmap buffer rect to another. Takes a piece of the src to blit it in a piece of the dest. Resizing involved. Prototype: fun [ObjBitmap [I I I I] ObjBitmap [I I I I]] ObjBitmap | |
int | _BTCPalphaBitmapRect (mmachine m) |
_BTCPalphaBitmapRect : copy a bitmap buffer rect to another. Takes a piece of the src to blit it in a piece of the dest. Resizing involved. Prototype: fun [AlphaBitmap [I I I I] AlphaBitmap [I I I I]] AlphaBitmap | |
int | _BTCPbitmapBufferRect (mmachine m) |
_BTCPbitmapBufferRect : copy a bitmap buffer rect to another. Takes a piece of the src to blit it in a piece of the dest. Resizing involved. Prototype: fun [ObjBuff I I I [I I I I] ObjBuff I I I [I I I I]] ObjBuff | |
int | _BTGETbitmapBuffer (mmachine m) |
_BTGETbitmapBuffer : This function return the bitmap buffer Prototype: fun [ObjBitmap] ObjBuff | |
int | _BTGETbitmapBufferExt (mmachine m) |
_BTGETbitmapBufferExt : This function return the bitmap buffer Prototype: fun [ObjBitmap] [ObjBuff I I I] | |
Detailed Description
Scol functions for bitmap manipulation
Function Documentation
◆ _BTBLENDalphaBitmaps()
int _BTBLENDalphaBitmaps | ( | mmachine | m | ) |
_BTBLENDalphaBitmaps : blends 2 alpha bitmaps. Takes a piece of the src to blit it in a piece of the dest. Resizing involved. Prototype: fun [AlphaBitmap [I I I I] AlphaBitmap [I I I I] F] AlphaBitmap
- Parameters
-
AlphaBitmap : dest bitmap [I I I I] : dest rect AlphaBitmap : src bitmap [I I I I] : src rect F : mix percentage (0: full dest, 1: full src; clamped to [0, 1])
- Returns
- AlphaBitmap : dst bitmap
Definition at line 2967 of file BitmapToolkit.cpp.
◆ _BTBLENDbitmaps()
int _BTBLENDbitmaps | ( | mmachine | m | ) |
_BTBLENDbitmaps : blends 2 bitmaps from percentage value. Takes a piece of the src to blit it in a piece of the dest. Resizing involved. Prototype: fun [ObjBitmap [I I I I] ObjBitmap [I I I I] F] ObjBitmap
- Parameters
-
ObjBitmap : dest bitmap [I I I I] : dest rect ObjBitmap : src bitmap [I I I I] : src rect F : mix percentage (0: full dest, 1: full src; clamped to [0, 1])
- Returns
- ObjBitmap : dst bitmap
Definition at line 2862 of file BitmapToolkit.cpp.
◆ _BTBLENDbitmapsBuffer()
int _BTBLENDbitmapsBuffer | ( | mmachine | m | ) |
_BTBLENDbitmapsBuffer : blends 2 bitmaps buffer from percentage value. Takes a piece of the src to blit it in a piece of the dest. Resizing involved. Prototype: fun [ObjBuff I I I [I I I I] ObjBuff I I I [I I I I] F] ObjBuff
- Parameters
-
ObjBuff : dest buffer I : dest buffer pixel width I : dest buffer pixel height I : dest number of bits per pixel [I I I I] : dest rect ObjBuff : src buffer I : src buffer pixel width I : src buffer pixel height I : src number of bits per pixel [I I I I] : src rect F : mix percentage (0: full dest, 1: full src; clamped to [0, 1])
- Returns
- ObjBuff : dest buffer
Definition at line 3102 of file BitmapToolkit.cpp.
◆ _BTBLURbitmap()
int _BTBLURbitmap | ( | mmachine | m | ) |
_BTBLURbitmap : This function apply a blur on a bitmap Prototype: fun [ObjBitmap I I] ObjBitmap
- Parameters
-
ObjBitmap : bitmap to update I : Blur value on X I : Blur value on Y
- Returns
- ObjBitmap : return same bitmap if success or NIL otherwise
Definition at line 167 of file BitmapToolkit.cpp.
◆ _BTBLURbitmapBuffer()
int _BTBLURbitmapBuffer | ( | mmachine | m | ) |
_BTBLURbitmapBuffer : This function apply a blur on a bitmap buffer Prototype: fun [ObjBuff I I I I I] ObjBuff
- Parameters
-
ObjBuff : buffer I : buffer pixel width I : buffer pixel height I : number of bytes per pixel I : Blur value on X I : Blur value on Y
- Returns
- ObjBuff : return same buffer if success or NIL otherwise
Definition at line 226 of file BitmapToolkit.cpp.
◆ _BTBRIGHTNESSbitmap()
int _BTBRIGHTNESSbitmap | ( | mmachine | m | ) |
_BTBRIGHTNESSbitmap : This function change the brightness of a bitmap Prototype: fun [ObjBitmap I] ObjBitmap
- Parameters
-
ObjBitmap : bitmap to update I : 0 to 200 coef, > 100 for saturate
- Returns
- ObjBitmap : return same bitmap if success or NIL otherwise
Definition at line 492 of file BitmapToolkit.cpp.
◆ _BTBRIGHTNESSbitmapBuffer()
int _BTBRIGHTNESSbitmapBuffer | ( | mmachine | m | ) |
_BTBRIGHTNESSbitmapBuffer : This function change the brightness of a bitmap buffer Prototype: fun [ObjBuff I I I I] ObjBuff
- Parameters
-
ObjBuff : buffer I : buffer pixel width I : buffer pixel height I : number of bytes per pixel I : 0 to 100 coef, > 100 for saturate
- Returns
- ObjBuff : return same buffer if success or NIL otherwise
Definition at line 579 of file BitmapToolkit.cpp.
◆ _BTCompBitmap()
int _BTCompBitmap | ( | mmachine | m | ) |
_BTCompBitmap : This function compress a bitmap and return the buffer as string Prototype: fun [ObjBitmap I] S
- Parameters
-
ObjBitmap : bitmap to compress I : Compression factor 1 to 100
- Returns
- S : return compressed data if success or NIL otherwise
Definition at line 2155 of file BitmapToolkit.cpp.
◆ _BTCPalphaBitmapRect()
int _BTCPalphaBitmapRect | ( | mmachine | m | ) |
_BTCPalphaBitmapRect : copy a bitmap buffer rect to another. Takes a piece of the src to blit it in a piece of the dest. Resizing involved. Prototype: fun [AlphaBitmap [I I I I] AlphaBitmap [I I I I]] AlphaBitmap
- Parameters
-
AlphaBitmap : dest bitmap [I I I I] : dest rect AlphaBitmap : src bitmap [I I I I] : src rect
- Returns
- AlphaBitmap : dst bitmap
Definition at line 3335 of file BitmapToolkit.cpp.
◆ _BTCPbitmapBufferRect()
int _BTCPbitmapBufferRect | ( | mmachine | m | ) |
_BTCPbitmapBufferRect : copy a bitmap buffer rect to another. Takes a piece of the src to blit it in a piece of the dest. Resizing involved. Prototype: fun [ObjBuff I I I [I I I I] ObjBuff I I I [I I I I]] ObjBuff
- Parameters
-
ObjBuff : dest buffer I : dest buffer pixel width I : dest buffer pixel height I : dest number of bits per pixel [I I I I] : dest rect ObjBuff : src buffer I : src buffer pixel width I : src buffer pixel height I : src number of bits per pixel [I I I I] : src rect
- Returns
- ObjBuff : dest buffer
Definition at line 3472 of file BitmapToolkit.cpp.
◆ _BTCPbitmapRect()
int _BTCPbitmapRect | ( | mmachine | m | ) |
_BTCPbitmapRect : copy a bitmap buffer rect to another. Takes a piece of the src to blit it in a piece of the dest. Resizing involved. Prototype: fun [ObjBitmap [I I I I] ObjBitmap [I I I I]] ObjBitmap
- Parameters
-
ObjBitmap : dest bitmap [I I I I] : dest rect ObjBitmap : src bitmap [I I I I] : src rect
- Returns
- ObjBitmap : dst bitmap
Definition at line 3235 of file BitmapToolkit.cpp.
◆ _BTDRAWcircle()
int _BTDRAWcircle | ( | mmachine | m | ) |
_BTDRAWcircle : This function draw a circle into a bitmap Prototype: fun [ObjBitmap [I I] I I I I I] ObjBitmap
- Parameters
-
ObjBitmap : bitmap to update [I I] : Position X Y I : Radius I : Stroke color I : Stroke thickness I : Filled (0:no, 1:yes, default 0) I : Fill color
- Returns
- ObjBitmap : return same bitmap if success or NIL otherwise
Definition at line 1199 of file BitmapToolkit.cpp.
◆ _BTDRAWcircleBuffer()
int _BTDRAWcircleBuffer | ( | mmachine | m | ) |
_BTDRAWcircleBuffer : This function draw a circle into a bitmap buffer Prototype: fun [ObjBuff I I I [I I] I I I I I] ObjBuff
- Parameters
-
ObjBuff : buffer I : buffer pixel width I : buffer pixel height I : number of bytes per pixel [I I] : Position X Y I : Radius I : Stroke color I : Stroke thickness I : Filled (0:no, 1:yes, default 0) I : Fill color
- Returns
- ObjBuff : return same buffer if success or NIL otherwise
Definition at line 1316 of file BitmapToolkit.cpp.
◆ _BTDRAWline()
int _BTDRAWline | ( | mmachine | m | ) |
_BTDRAWline : This function draw a line into a bitmap Prototype: fun [ObjBitmap [I I] [I I] I I] ObjBitmap
- Parameters
-
ObjBitmap : bitmap to update [I I] : start point X Y [I I] : end point X Y I : Line color I : Line thickness
- Returns
- ObjBitmap : return same bitmap if success or NIL otherwise
Definition at line 1704 of file BitmapToolkit.cpp.
◆ _BTDRAWlineBuffer()
int _BTDRAWlineBuffer | ( | mmachine | m | ) |
_BTDRAWlineBuffer : This function draw a line into a bitmap buffer Prototype: fun [ObjBuff I I I [I I] [I I] I I] ObjBuff
- Parameters
-
ObjBuff : buffer I : buffer pixel width I : buffer pixel height I : number of bytes per pixel [I I] : start point X Y [I I] : end point X Y I : Stroke color I : Stroke thickness
- Returns
- ObjBuff : return same buffer if success or NIL otherwise
Definition at line 1787 of file BitmapToolkit.cpp.
◆ _BTDRAWpath()
int _BTDRAWpath | ( | mmachine | m | ) |
_BTDRAWpath : This function draw a path into a bitmap Prototype: fun [ObjBitmap [[I I] r1] I I] ObjBitmap
- Parameters
-
ObjBitmap : bitmap to update [[I I] r1] : list of points X Y I : Line color I : Line thickness
- Returns
- ObjBitmap : return same bitmap if success or NIL otherwise
Definition at line 1883 of file BitmapToolkit.cpp.
◆ _BTDRAWpathBuffer()
int _BTDRAWpathBuffer | ( | mmachine | m | ) |
_BTDRAWpathBuffer : This function draw a line into a bitmap buffer Prototype: fun [ObjBuff I I I [[I I] r1] I I] ObjBuff
- Parameters
-
ObjBuff : buffer I : buffer pixel width I : buffer pixel height I : number of bytes per pixel [I I] : list of points X Y I : Stroke color I : Stroke thickness
- Returns
- ObjBuff : return same buffer if success or NIL otherwise
Definition at line 1971 of file BitmapToolkit.cpp.
◆ _BTDRAWrect()
int _BTDRAWrect | ( | mmachine | m | ) |
_BTDRAWrect : This function draw a rectangle into a bitmap Prototype: fun [ObjBitmap [I I I I] I I I I] ObjBitmap
- Parameters
-
ObjBitmap : bitmap to update [I I I I] : x y w h I : Stroke color I : Stroke thickness I : Filled (0:no, 1:yes, default 0) I : Fill color
- Returns
- ObjBitmap : return same bitmap if success or NIL otherwise
Definition at line 1437 of file BitmapToolkit.cpp.
◆ _BTDRAWrectBuffer()
int _BTDRAWrectBuffer | ( | mmachine | m | ) |
_BTDRAWrectBuffer : This function draw a rectangle into a bitmap buffer Prototype: fun [ObjBuff I I I [I I I I] I I I I] ObjBuff
- Parameters
-
ObjBuff : buffer I : buffer pixel width I : buffer pixel height I : number of bytes per pixel [I I I I] : x y w h I : Stroke color I : Stroke thickness I : Filled (0:no, 1:yes, default 0) I : Fill color
- Returns
- ObjBuff : return same buffer if success or NIL otherwise
Definition at line 1564 of file BitmapToolkit.cpp.
◆ _BTFILTERbitmap()
int _BTFILTERbitmap | ( | mmachine | m | ) |
_BTFILTERbitmap : This function apply a kernel filter on a bitmap Prototype: fun [ObjBitmap tab tab F] ObjBitmap
- Parameters
-
ObjBitmap : bitmap to update tab tab F : float array with same number of row and cols \exemple emboss filter: [1 1 0] [1 0 -1] [0 -1 -1]
let mktab 3 nil -> kernel in ( set kernel.0 = mktab 3 1.0; set kernel.0.0 = 1.0; set kernel.0.1 = 1.0; set kernel.0.2 = 0.0;
set kernel.1 = mktab 3 1.0; set kernel.1.0 = 1.0; set kernel.1.1 = 0.0; set kernel.1.2 = -.1.0;
set kernel.2 = mktab 3 1.0; set kernel.2.0 = 0.0; set kernel.2.1 = -.1.0; set kernel.2.2 = -.1.0; _BTFILTERbitmap bmp kernel; )
- Returns
- ObjBitmap : return same bitmap if success or NIL otherwise
Definition at line 315 of file BitmapToolkit.cpp.
◆ _BTFILTERbitmapBuffer()
int _BTFILTERbitmapBuffer | ( | mmachine | m | ) |
_BTFILTERbitmapBuffer : This function apply a kernel filter on a bitmap buffer Prototype: fun [ObjBuff I I I tab tab F] ObjBuff
- Parameters
-
ObjBuff : buffer I : buffer pixel width I : buffer pixel height I : number of bytes per pixel tab tab F : float array with same number of row and cols \exemple emboss filter: [1 1 0] [1 0 -1] [0 -1 -1]
let mktab 3 nil -> kernel in ( set kernel.0 = mktab 3 1.0; set kernel.0.0 = 1.0; set kernel.0.1 = 1.0; set kernel.0.2 = 0.0;
set kernel.1 = mktab 3 1.0; set kernel.1.0 = 1.0; set kernel.1.1 = 0.0; set kernel.1.2 = -.1.0;
set kernel.2 = mktab 3 1.0; set kernel.2.0 = 0.0; set kernel.2.1 = -.1.0; set kernel.2.2 = -.1.0; _BTFILTERbitmap bmp kernel; )
- Returns
- ObjBuff : return same buffer if success or NIL otherwise
Definition at line 411 of file BitmapToolkit.cpp.
◆ _BTFLIPbitmap()
int _BTFLIPbitmap | ( | mmachine | m | ) |
_BTFLIPbitmap : This function apply vertical flip on a bitmap Prototype: fun [ObjBitmap] ObjBitmap
- Parameters
-
ObjBitmap : bitmap to flip
- Returns
- ObjBitmap : return same bitmap if success or NIL otherwise
Definition at line 797 of file BitmapToolkit.cpp.
◆ _BTFLIPbuffer()
int _BTFLIPbuffer | ( | mmachine | m | ) |
_BTFLIPbuffer : This function apply vertical flip on a pixel buffer Prototype: fun [ObjBuff I I I] ObjBuff
- Parameters
-
ObjBuff : buffer I : buffer pixel width I : buffer pixel height I : number of bytes per pixel
- Returns
- ObjBuff : return same buffer if success or NIL otherwise
Definition at line 848 of file BitmapToolkit.cpp.
◆ _BTGETbitmapBuffer()
int _BTGETbitmapBuffer | ( | mmachine | m | ) |
_BTGETbitmapBuffer : This function return the bitmap buffer Prototype: fun [ObjBitmap] ObjBuff
- Parameters
-
ObjBitmap : bitmap
- Returns
- ObjBuff : return bitmap buffer if success or NIL otherwise
_BTGETbitmapBuffer8 : This function return the bitmap buffer Prototype: fun [ObjBitmap8] ObjBuff
- Parameters
-
ObjBitmap : bitmap
- Returns
- ObjBuff : return bitmap buffer if success or NIL otherwise
Definition at line 3615 of file BitmapToolkit.cpp.
◆ _BTGETbitmapBufferExt()
int _BTGETbitmapBufferExt | ( | mmachine | m | ) |
_BTGETbitmapBufferExt : This function return the bitmap buffer Prototype: fun [ObjBitmap] [ObjBuff I I I]
- Parameters
-
ObjBitmap : bitmap
- Returns
- ObjBuff : return bitmap buffer if success or NIL otherwise
_BTGETbitmapBuffer8Ext : This function return the bitmap buffer Prototype: fun [ObjBitmap8] [ObjBuff I I I]
- Parameters
-
ObjBitmap : bitmap
- Returns
- [ObjBuff I I I] : return bitmap buffer, width, height, bytes per pixel if success or NIL otherwise
Definition at line 3667 of file BitmapToolkit.cpp.
◆ _BTGETmatBuffer()
int _BTGETmatBuffer | ( | mmachine | m | ) |
_BTGETmatBuffer : Get a cv mat buffer Prototype: fun [ObjBTMat] ObjBuff
- Parameters
-
ObjBTMat : mat
- Returns
- ObjBuff : the mat buffer on success 0 otherwise
Definition at line 139 of file BitmapToolkit.cpp.
◆ _BTLAPLACEbitmap()
int _BTLAPLACEbitmap | ( | mmachine | m | ) |
_BTLAPLACEbitmap : This function apply a LAPLACE filter on a bitmap Prototype: fun [ObjBitmap I I] ObjBitmap
- Parameters
-
ObjBitmap : bitmap to update I : Desired depth I : Aperture size
- Returns
- ObjBitmap : return same bitmap if success or NIL otherwise
Definition at line 675 of file BitmapToolkit.cpp.
◆ _BTLAPLACEbitmapBuffer()
int _BTLAPLACEbitmapBuffer | ( | mmachine | m | ) |
_BTLAPLACEbitmapBuffer : This function apply LAPLACE filter on a bitmap buffer Prototype: fun [ObjBuff I I I I I] ObjBuff
- Parameters
-
ObjBuff : buffer I : buffer pixel width I : buffer pixel height I : number of bytes per pixel I : Desired depth I : Aperture size
- Returns
- ObjBuff : return same buffer if success or NIL otherwise
Definition at line 733 of file BitmapToolkit.cpp.
◆ _BTLOADbitmap()
int _BTLOADbitmap | ( | mmachine | m | ) |
_BTLOADbitmap : This function loads an RGB bitmap from a defined path. Prototype: fun [Chn P] ObjBitmap
- Parameters
-
Chn : scol channel P : bitmap path
- Returns
- ObjBitmap : loaded bitmap if success or NIL otherwise
Definition at line 2782 of file BitmapToolkit.cpp.
◆ _BTMOTIONdetect()
int _BTMOTIONdetect | ( | mmachine | m | ) |
_BTMOTIONdetect : This function detect the motion between two bitmaps Prototype: fun [ObjBitmap ObjBitmap I I] I
- Parameters
-
ObjBitmap : previous bitmap ObjBitmap : current bitmap I : thresol of the detection filter I : sensivity (0 to 100)
- Returns
- I : return 1 if motion is detected, 0 if not or NIL otherwise
Definition at line 2072 of file BitmapToolkit.cpp.
◆ _BTNORMALbitmap()
int _BTNORMALbitmap | ( | mmachine | m | ) |
_BTNORMALbitmap : This function convert an height map to a normal map bitmap Prototype: fun [ObjBitmap F F] ObjBitmap
- Parameters
-
ObjBitmap : bitmap F : strength F : blur coef, positive to blur, negative to sharp the result image
- Returns
- ObjBitmap : return same bitmap if success or NIL otherwise
Definition at line 908 of file BitmapToolkit.cpp.
◆ _BTNORMALbitmapBuffer()
int _BTNORMALbitmapBuffer | ( | mmachine | m | ) |
_BTNORMALbitmapBuffer :This function convert an height map to a normal map bitmap Prototype: fun [ObjBuff I I I F F] ObjBuff
- Parameters
-
ObjBuff : buffer I : buffer pixel width I : buffer pixel height I : number of bytes per pixel F : strength F : blur coef, positive to blur, negative to sharp the result image
- Returns
- ObjBuff : return same buffer if success or NIL otherwise
Definition at line 1049 of file BitmapToolkit.cpp.
◆ _BTSAVEalphaBitmap()
int _BTSAVEalphaBitmap | ( | mmachine | m | ) |
_BTSAVEbitmapWithAlpha : This function saves a scol RGB bitmap with alpha bitmap to a defined path. The format is defined by the extension you write in path Prototype: fun [AlphaBitmap W] P
- Parameters
-
ObjAlphaBitmap : 32-bit bitmap W : dest bitmap
- Returns
- P : dest bitmap if success or NIL otherwise
Definition at line 2711 of file BitmapToolkit.cpp.
◆ _BTSAVEbitmap()
int _BTSAVEbitmap | ( | mmachine | m | ) |
_BTSAVEbitmap : This function saves a scol RGB bitmap to a defined path. The format is defined by the extension you write in path Prototype: fun [ObjBitmap W] P
- Parameters
-
ObjBitmap : 24-bit bitmap W : dest bitmap
- Returns
- P : dest bitmap path if success or NIL otherwise
Definition at line 2646 of file BitmapToolkit.cpp.
◆ _BTSCALEalphaBitmap()
int _BTSCALEalphaBitmap | ( | mmachine | m | ) |
_BTSCALEalphaBitmap : This function scale an alpha bitmap to an another alpha bitmap Prototype: fun [AlphaBitmap AlphaBitmap I] AlphaBitmap
- Parameters
-
AlphaBitmap : dest bitmap AlphaBitmap : source bitmap I : Scale method from 0 to 6 (NEAREST, LINEAR, CUBIC, AREA, LANCZOS4, MAX, WARP_INVERSE_MAP)
- Returns
- AlphaBitmap : return dest alpha bitmap if success or NIL otherwise
Definition at line 2390 of file BitmapToolkit.cpp.
◆ _BTSCALEbitmap()
int _BTSCALEbitmap | ( | mmachine | m | ) |
_BTSCALEbitmap : This function scale a bitmap to an another bitmap Prototype: fun [ObjBitmap ObjBitmap I] ObjBitmap
- Parameters
-
ObjBitmap : dest bitmap ObjBitmap : source bitmap I : Scale method from 0 to 6 (NEAREST, LINEAR, CUBIC, AREA, LANCZOS4, MAX, WARP_INVERSE_MAP)
- Returns
- ObjBitmap : return dest bitmap if success or NIL otherwise
Definition at line 2299 of file BitmapToolkit.cpp.
◆ _BTSCALEbitmapBuffer()
int _BTSCALEbitmapBuffer | ( | mmachine | m | ) |
_BTSCALEbitmapBuffer : This function scale a bitmap to an another bitmap Prototype: fun [ObjBuff I I I ObjBuff I I I I] ObjBitmap
- Parameters
-
ObjBuff : dest buffer I : dest buffer pixel width I : dest buffer pixel height I : dest number of bits per ObjBuff : src buffer I : src buffer pixel width I : src buffer pixel height I : src number of bits per pixel I : Scale method from 0 to 6 (NEAREST, LINEAR, CUBIC, AREA, LANCZOS4, MAX, WARP_INVERSE_MAP)
- Returns
- ObjBuff : return dest buffer if success or NIL otherwise
Definition at line 2527 of file BitmapToolkit.cpp.
◆ _BTUnCompBitmap()
int _BTUnCompBitmap | ( | mmachine | m | ) |
_BTUnCompBitmap : This function uncompress a bitmap data to an existed bitmap Prototype: fun [S ObjBitmap] S
- Parameters
-
S : compressed bitmap data ObjBitmap : bitmap to fill
- Returns
- S : return the filled bitmap if success or NIL otherwise
Definition at line 2241 of file BitmapToolkit.cpp.
◆ _CRBTmat()
int _CRBTmat | ( | mmachine | m | ) |
_CRBTmat : Creates a ObjBTMat object from an AlphaBitmap Prototype: fun [Chn AlphaBitmap] ObjBTMat
- Parameters
-
Chn : channel AlphaBitmap : AlphaBitmap to copy in mat buffer
- Returns
- ObjBTMat : the created mat
Definition at line 64 of file BitmapToolkit.cpp.
◆ _DSBTmat()
int _DSBTmat | ( | mmachine | m | ) |
_DSBTmat : Deletes a cv mat object Prototype: fun [ObjBTMat] I
- Parameters
-
ObjBTMat : mat to destroy
- Returns
- I : 1 on success 0 otherwise
Definition at line 118 of file BitmapToolkit.cpp.
Generated by 1.9.8