Jump to content
Tuts 4 You

how to use alphablend library ?


Zekim

Recommended Posts

Posted

Hello There euro.gif

anyone here can help me how to use alphablend library in c language cold2.gif

i found it in patchlib but i dont want to use patchlib and some times i cannot use patchlib with my weired apps too crazy.gif

there are 3 functions but dont know how to use them cryss.gif


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 cry.gif

Thanks in advance

Mike.X. elvis.gif

Posted

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
  • Like 1
Posted (edited)

Thanks smile.png

i dont know ASM but i'll try to follow params.

still anyone have done this can help me cold2.gif

Mike.X. elvis.gif

Edited by Mike.X.
Posted

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:ULONG

Strip 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

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...