well, from a gfx standpoint, if the transparency is set to pure white, just go in to photoshop and make the whole image 1% darker if you want to still see the white. otherwise im not sure i can help
hey,
i have a question.
can u help me with this function
D3DXCreateTextureFromResourceEx
i want to know how i use them right.
if u dont know waht this is do:
with this function u can add a picture into ur hack.
iwant to add a .png image
if im using bytes theyr is the transparenty area white...
i hope u can help me
if u want to see which picture here u can see:
this image i make public, cause this image is comming into my next pub xD
well, from a gfx standpoint, if the transparency is set to pure white, just go in to photoshop and make the whole image 1% darker if you want to still see the white. otherwise im not sure i can help
Look up D3DXCreateTextureFromFile.
Are you saying you already used bytes, but are looking for another method?
Dont ban me
yeah, cause the transperancy area.
watch on my image:
u see its a .png so it can have trasparent surfaces.
but when im using bytes, the transparent surfaces are whit, and not transparent cause this i want to use this function, but their is so muc i must enter where i dont know which is what oO xD
Use GetDirectoryFile.
Put Picture.png or whatever your file name is in the same directory as your .dll.Code:char dlldirectory[320]; char *GetDirectoryFile(char *filename) { static char path[320]; strcpy(path, dlldirectory); strcat(path, filename); return path; } In DLLMain; GetModuleFileName(hDll, dlldirectory, 512); for(int i = strlen(dlldirectory); i > 0; i--) { if(dlldirectory[i] == '\\') { dlldirectory[i+1] = 0; break; } } D3DXCreateTextureFromFile; D3DXCreateTextureFromFile( myDevice, GetDirectoryFile("Picture.png"), &texPicture );
Last edited by Synns; 08-09-2010 at 10:17 AM.
Kontentpof, go back to gorfags
Why don't you use bytes? It works for me, I have a banner with transparency and irregular edges, all working pretty neat.
Do a search on MSDN for this D3DXCreateTextureFromFileInMemoryEx
It will work wonders for you. Too bad my D3D hack is not working or I could show it to you.
Originally Posted by flavjo
Sorry for my chooby question but where do i find the C++ Express in my PC???Originally Posted by Deco
i'll just punch him in the face nd steal his shoes *nigga style*
I DONT GET IT. when i use byte and when topblast used bytes in his color picker chams it worked prefect it got transparent parts u just cant get it done.. maybe u should look more at this like
Sprite->Begin(HERE);