Posted November 10, 201113 yr Hello There anyone here can help me how to use alphablend library in c language i found it in patchlib but i dont want to use patchlib and some times i cannot use patchlib with my weired apps too there are 3 functions but dont know how to use them VOID AlphaBlend2(ULONG,HBITMAP,ULONG,ULONG,ULONG,ULONG,HBITMAP,ULONG,ULONG,BOOL);VOID AlphaBlendScroller(ULONG,HBITMAP,ULONG,ULONG,ULONG,ULONG,HBITMAP,ULONG,ULONG,BOOL,ULONG,ULONG,ULONG);VOID PaintText(HDC,HBITMAP,HDC,HBITMAP,const LPCSTR strText,ULONG,ULONG); Alphablend Library : http://uppit.com/xxti9x3w817y/alphablend.zip Please Help Thanks in advance Mike.X.
November 11, 201113 yr Check the ASM file for the params:AlphaBlend2 PROC C USES EBX ESI EDI ulSrcWndWidth:ULONG, hSrcBMP:HBITMAP,ulSrcX:ULONG,ulSrcY:ULONG,ulSrcWidth:ULONG,ulSrcHeight:ULONG,hDestBMP:HBITMAP,ulDestX:ULONG,ulDestY:ULONG,bFade:BOOLAlphaBlendScroller PROC C USES EBX ESI EDI ulSrcWndWidth:ULONG,hSrcBMP:HBITMAP,ulSrcX:ULONG,ulSrcY:ULONG,ulSrcWidth:ULONG,ulSrcHeight:ULONG,hDestBMP:HBITMAP,ulDestX:ULONG,ulDestY:ULONG,bFade:BOOL,Frequency:ULONG,Sine_Speed:ULONG,Amplitude:ULONGPaintText PROC C USES EBX ESI EDI hTmpDC:HDC,hTmpBMP:HBITMAP,hOutDC:HDC,hOutBMP:HDC,lpString:LPCSTR,ulX:ULONG,ulY:ULONG
November 11, 201113 yr Author Thanks i dont know ASM but i'll try to follow params. still anyone have done this can help me Mike.X. Edited November 11, 201113 yr by Mike.X.
November 11, 201113 yr The params are in order just like they are in the C header I made for patchLib to use the lib. Just ignore the right-side type that is attached to them.such as:PaintText PROC C USES EBX ESI EDI hTmpDC:HDC,hTmpBMP:HBITMAP,hOutDC:HDC,hOutBMP:HDC,lpString:LPCSTR,ulX:ULONG,ulY:ULONGStrip the unneeded stuff from ASM and you get:PaintText( hTmpDC, hTmpBMP, hOutDC, hOutBMP, lpString, ulX, ulY )hTmpDC - DC to the object you want to draw.hTmpBMP - Bitmap of the object you want to draw.hOutDC - DC to the main object you are drawing to.hOutBMP - Bitmap of the main object you are drawing to.lpString - Text that you are drawing.ulX - x position you are drawing the text at.ulY - y position you are drawing the text at.Do the same for the AlphaBlend calls.
Create an account or sign in to comment