Draw.dll
Created by the KPD-Team 1999
Kris & Pieter Philippaerts
E-Mail us at KPD_Team@Hotmail.com
and visit our website at http://users.turboline.be/btl10148/

'Visual Basic declarations
Private Declare Function EarthQuake Lib "draw.dll" (ByVal lhSrcDC As Long, ByVal nWidth As Long, ByVal nHeight As Long, ByVal nSize As Long, ByVal lhDestDC As Long) As Integer
Private Declare Function CreateMask Lib "draw.dll" (ByVal lhSrcDC As Long, ByVal nWidth As Long, ByVal nHeight As Long, ByVal lhDestDC As Long, ByVal MaskColor As Long) As Integer
Private Declare Function GetR Lib "draw.dll" (ByVal nColor As Long) As Integer
Private Declare Function GetG Lib "draw.dll" (ByVal nColor As Long) As Integer
Private Declare Function GetB Lib "draw.dll" (ByVal nColor As Long) As Integer
Private Declare Function MixPictures Lib "draw.dll" (ByVal mDC1 As Long, ByVal nWidth1 As Long, ByVal nHeight1 As Long, ByVal mDC2 As Long, ByVal nWidth2 As Long, ByVal nHeight2 As Long, ByVal hDestDC As Long) As Integer
Private Declare Function DrawPattern Lib "draw.dll" (ByVal hSrcDC As Long, ByVal nWidth As Long, ByVal nHeight As Long, ByVal hPatternDC As Long, ByVal MaskColor As Long, ByVal hDestDC As Long, ByVal bInvert As Long) As Integer
Private Declare Function InvertPicture Lib "draw.dll" (ByVal hSrcDC As Long, ByVal nWidth As Long, ByVal nHeight As Long) As Integer
Private Declare Function DuoTone Lib "draw.dll" (ByVal hSrcDC As Long, ByVal nWidth As Long, ByVal nHeight As Long, ByVal DuoColor As Long, ByVal hDestDC As Long) As Integer
Private Declare Function Rotate Lib "draw.dll" (ByVal hSrcDC As Long, ByVal nWidth As Long, ByVal nHeight As Long, ByVal nDegrees As Long, ByVal BackColor As Long, ByVal hDestDC As Long) As Long
Private Declare Function ShadeRect Lib "draw.dll" (ByVal hSrcDC As Long, ByVal nWidth As Long, ByVal nHeight As Long, ByVal UseTransparentColor As Long, ByVal MaskColor As Long) As Long
Private Declare Function TransBlt Lib "draw.dll" (ByVal hSrcDC As Long, ByVal lWidth As Long, ByVal lHeight As Long, ByVal MaskColor As Long, ByVal hBackDC As Long, ByVal hDestDC As Long) As Long
Private Declare Function ChangePixels Lib "draw.dll" (ByVal hSrcDC As Long, ByVal lWidth As Long, ByVal lHeight As Long, ByVal OldColor As Long, ByVal NewColor As Long, ByVal hDestDC As Long) As Long
Private Declare Function DrawInvertedBitmap Lib "draw.dll" (ByVal hSrcDC As Long, ByVal nWidth As Long, ByVal nHeight As Long, ByVal Horizontal As Boolean, ByVal Vertical As Boolean, ByVal hDestDC As Long) As Long
Private Declare Function GetRotatedWidth Lib "draw.dll" (ByVal nWidth As Long, ByVal nHeight As Long, ByVal Degrees As Long) As Long
Private Declare Function GetRotatedHeight Lib "draw.dll" (ByVal nWidth As Long, ByVal nHeight As Long, ByVal Degrees As Long) As Long
Private Declare Function GradientFill Lib "draw.dll" (ByVal hDestDC As Long, ByVal nWidth As Long, ByVal nHeight As Long, ByVal R As Long, ByVal G As Long, ByVal B As Long, ByVal nSteps As Long) As Long
Private Declare Function Pixelate Lib "draw.dll" (ByVal lhSrcDC As Long, ByVal nWidth As Long, ByVal nHeight As Long, ByVal nSize As Long, ByVal lhDestDC As Long) As Long
Private Declare Function Brightness Lib "draw.dll" (ByVal hSrcDC As Long, ByVal nWidth As Long, ByVal nHeight As Long, ByVal R As Long, ByVal G As Long, ByVal B As Long, ByVal hDestDC As Long) As Long
Private Declare Function DitherBlt Lib "draw.dll" (ByVal hdcDest As Long, ByVal nXDest As Long, ByVal nYDest As Long, ByVal nWidth As Long, ByVal nHeight As Long, ByVal hbm As Long, ByVal nXSrc As Long, ByVal nYSrc As Long) As Long
Private Declare Function BitmapToRegion Lib "draw.dll" (ByVal hBmp As Long, ByVal cTransparentColor As Long, ByVal cTolerance As Long) As Long

//Visual C++ declarations
HRGN _stdcall BitmapToRegion (HBITMAP hBmp, COLORREF cTransparentColor, COLORREF cTolerance)
int _stdcall Brightness(HDC hSrcDC, int nWidth, int nHeight, int R, int G, int B, HDC hDestDC)
int _stdcall ChangePixels(HDC hSrcDC, int lWidth, int lHeight, COLORREF OldColor,COLORREF NewColor, HDC hDestDC)
int _stdcall CreateMask(HDC hSrcDC, int nWidth, int nHeight, HDC hDestDC, COLORREF MaskColor)
void _stdcall DitherBlt (HDC hdcDest, int nXDest, int nYDest, int nWidth, int nHeight, HBITMAP hbm, int nXSrc, int nYSrc)
int _stdcall DrawInvertedBitmap( HDC hSrcDC, int nWidth, int nHeight, int Horizontal, int Vertical, HDC hDestDC )
int _stdcall DrawPattern(HDC hSrcDC, int nWidth, int nHeight, HDC hPatternDC, COLORREF MaskColor, HDC hDestDC, int bInvert)
int _stdcall DuoTone(HDC hSrcDC, int nWidth, int nHeight, COLORREF DuoColor, HDC hDestDC)
int _stdcall EarthQuake(HDC lhSrcDC, int nWidth, int nHeight, int nSize, HDC lhDestDC) 
byte _stdcall GetR(COLORREF nColor)
byte _stdcall GetG(COLORREF nColor)
byte _stdcall GetB(COLORREF nColor)
int _stdcall GetRotatedHeight(int lWidth, int lHeight, int Degrees)
int _stdcall GetRotatedWidth(int lWidth, int lHeight, int Degrees)
int _stdcall GradientFill( HDC hDestDC, int nWidth, int nHeight, int r, int g, int b, int nSteps )
int _stdcall InvertPicture(HDC hSrcDC, int nWidth, int nHeight)
int _stdcall MixPictures(HDC FirstPic, int nWidth1, int nHeight1, HDC SecPic, int nWidth2, int nHeight2, HDC hDestDC)
int _stdcall Pixelate(HDC lhSrcDC, int nWidth, int nHeight, int nSize, HDC lhDestDC)
int _stdcall Rotate(HDC hBitmapDC, int lWidth, int lHeight, int Degrees, COLORREF BackColor,HDC hDestDC)
int _stdcall ShadeRect(HDC hBitmapDC, int lWidth, int lHeight, bool TransCol, COLORREF MaskColor)
int _stdcall TransBlt(HDC hSrcDC, int lWidth, int lHeight, COLORREF MaskColor, HDC hBackDC, HDC hDestDC)