Zekim Posted November 10, 2011 Posted November 10, 2011 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.
atom0s Posted November 11, 2011 Posted November 11, 2011 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 1
Zekim Posted November 11, 2011 Author Posted November 11, 2011 (edited) 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, 2011 by Mike.X.
atom0s Posted November 11, 2011 Posted November 11, 2011 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.
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now