[Help] D3DXCreateTextureFromResourceEx

Posts 1–13 of 13 · Page 1 of 1
[Help] D3DXCreateTextureFromResourceEx
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.
Quote Originally Posted by Synns View Post
Look up D3DXCreateTextureFromFile.
if im using this, i must give the path.
but if i want to make it into a public hack, they must also download the image. and when u download a hack, do u want also download a image to use it?
Quote Originally Posted by kotentopf View Post
if im using this, i must give the path.
but if i want to make it into a public hack, they must also download the image. and when u download a hack, do u want also download a image to use it?
Use GetDirectoryFile.

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 );
Put Picture.png or whatever your file name is in the same directory as your .dll.
Are you saying you already used bytes, but are looking for another method?
Quote Originally Posted by markoj View Post
Are you saying you already used bytes, but are looking for another method?
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
Kontentpof, go back to gorfags
Quote Originally Posted by Valiant671 View Post
Kontentpof, go back to gorfags
Coming from a leecher who cant code shit and will not help this site in any way.
Use:

D3DXCreateTextureFromFile()
Quote Originally Posted by J View Post
Use:

D3DXCreateTextureFromFile()
If he uses that with transparency his image will be all streched so you must use D3DXCreateTextureFromFileEx and some flags to make it normal (And this method for me uses less FPS :/)
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.
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);
Posts 1–13 of 13 · Page 1 of 1
This thread is closed for replies.

Similar Threads

Tags for this Thread

None

Talk with us