Results 1 to 13 of 13
  1. #1
    kotentopf's Avatar
    Join Date
    Nov 2009
    Gender
    male
    Posts
    602
    Reputation
    26
    Thanks
    251

    [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

  2. #2
    BloodSkin's Avatar
    Join Date
    Jun 2010
    Gender
    male
    Location
    Columbus, OH
    Posts
    353
    Reputation
    11
    Thanks
    63
    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

  3. #3
    Synns's Avatar
    Join Date
    May 2007
    Gender
    male
    Posts
    5,174
    Reputation
    170
    Thanks
    2,557
    My Mood
    Bitchy
    Look up D3DXCreateTextureFromFile.

  4. #4
    kotentopf's Avatar
    Join Date
    Nov 2009
    Gender
    male
    Posts
    602
    Reputation
    26
    Thanks
    251
    Quote Originally Posted by Tyrannus 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?

  5. #5
    markoj's Avatar
    Join Date
    Jul 2010
    Gender
    male
    Location
    s
    Posts
    1,064
    Reputation
    60
    Thanks
    407
    My Mood
    Bored
    Are you saying you already used bytes, but are looking for another method?
    Dont ban me

  6. #6
    kotentopf's Avatar
    Join Date
    Nov 2009
    Gender
    male
    Posts
    602
    Reputation
    26
    Thanks
    251
    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

  7. #7
    Synns's Avatar
    Join Date
    May 2007
    Gender
    male
    Posts
    5,174
    Reputation
    170
    Thanks
    2,557
    My Mood
    Bitchy
    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.
    Last edited by Synns; 08-09-2010 at 10:17 AM.

  8. #8
    Valiant671's Avatar
    Join Date
    Aug 2010
    Gender
    male
    Location
    Wherever my imagination takes me...
    Posts
    23
    Reputation
    10
    Thanks
    2
    My Mood
    Inspired
    Kontentpof, go back to gorfags

  9. #9
    J's Avatar
    Join Date
    Jun 2010
    Gender
    male
    Location
    East Coast
    Posts
    2,164
    Reputation
    452
    Thanks
    5,900
    My Mood
    In Love
    Use:

    D3DXCreateTextureFromFile()
    Keep me motivated for my hack development!

  10. #10
    ··Fvestrgenrl··'s Avatar
    Join Date
    Aug 2010
    Gender
    male
    Posts
    14
    Reputation
    10
    Thanks
    0
    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.

  11. #11
    Mr.Magicman's Avatar
    Join Date
    Sep 2009
    Gender
    male
    Location
    Sitting in my cave full of thoughts learning Asembly
    Posts
    2,102
    Reputation
    16
    Thanks
    649
    My Mood
    Cold
    Quote Originally Posted by Blood 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 :/)

  12. #12
    ngh555's Avatar
    Join Date
    Oct 2009
    Gender
    male
    Posts
    126
    Reputation
    14
    Thanks
    58
    My Mood
    Devilish
    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*

  13. #13
    Finish's Avatar
    Join Date
    Aug 2010
    Gender
    male
    Posts
    126
    Reputation
    11
    Thanks
    6
    My Mood
    Happy
    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);

Similar Threads

  1. [Help Request] Combat arms Vid help
    By djw111 in forum Combat Arms Help
    Replies: 4
    Last Post: 12-24-2011, 05:06 PM
  2. [Help Request] AFK Bot [help]
    By fet in forum Combat Arms Help
    Replies: 7
    Last Post: 04-28-2011, 03:17 AM
  3. [Help Request] Injector Admin help
    By asdfgas in forum Combat Arms Help
    Replies: 4
    Last Post: 04-27-2011, 06:12 PM
  4. [Help Request] Ajuda / Help
    By - Battery' in forum Combat Arms BR Coding Help
    Replies: 3
    Last Post: 04-22-2011, 07:15 PM
  5. [Help Request] Help my!
    By Windowns7 in forum Combat Arms BR Coding Help
    Replies: 2
    Last Post: 04-18-2011, 01:41 PM