Project

General

Profile

BitmapToolkit Scol plugin
BitmapToolkit.cpp File Reference
#include <boost/filesystem.hpp>
#include "Prerequisites.h"
#include "BitmapToolkitText.h"
#include "ScolConvert.h"

Go to the source code of this file.

Macros

#define ROW_PTR(img, y)   ((uchar*)((img).data + (img).step * y))
 

Functions

int destroyCVMat (mmachine m, SCOL_PTR_TYPE handsys, int obj)
 
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]
 

Variables

int SObjBTFont
 
int SObjBTMat
 
NativeDefinition bitmapToolkitEngine []
 

Macro Definition Documentation

◆ ROW_PTR

#define ROW_PTR (   img,
 
)    ((uchar*)((img).data + (img).step * y))

Definition at line 898 of file BitmapToolkit.cpp.

Function Documentation

◆ destroyCVMat()

int destroyCVMat ( mmachine  m,
SCOL_PTR_TYPE  handsys,
int  obj 
)

Definition at line 46 of file BitmapToolkit.cpp.

Variable Documentation

◆ bitmapToolkitEngine

NativeDefinition bitmapToolkitEngine[]

Definition at line 3716 of file BitmapToolkit.cpp.

◆ SObjBTFont

int SObjBTFont

Definition at line 42 of file BitmapToolkit.cpp.

◆ SObjBTMat

int SObjBTMat

Definition at line 43 of file BitmapToolkit.cpp.