Well i thought id create a tutorial on this, Since some people are asking. The code is NOT mine. Credits to pyroctain666 for the code and im not sure who made the program
First get your image and open it up in the converter provided.
Convert the image to bytes. The output bytes will be in the text file.
Define you bytes like this:
[php]
BYTE Menu[ ] = {output bytes here};
[/php]
In the globals, Put:
[php]
LPD3DXSPRITE Sprite;
LPDIRECT3DTEXTURE9 MenuTexture;
static BOOL Create = TRUE;
[/php]
Now, Go to your Endscene or Present and create your texture and sprite like so:
[php]
if(Create){
D3DXCreateTextureFromFileInMemory(Device,&Menu,siz eof(Menu),&MenuTexture);
D3DXCreateSprite(pDevice,&Sprite);
Create = FALSE;
}
[/php]
Now you need to draw the sprite (In Endscene or Present again)
[php]
D3DXVECTOR3 POS;
POS.x = 15;
POS.y = 15;
POS.z = 0;
Thanks mate..
So it will Make Any pic you want transparent?
Originally Posted by whit
Thanks mate..
So it will Make Any pic you want transparent?
yes it will make the image you put in there transparent
You need 2 virusscans.
and a screenshot
Originally Posted by Zoom
You need 2 virusscans.
and a screenshot
A SS of what? The program?
Originally Posted by ac1d_buRn
A SS of what? The program?
The Menu?.. proof it works?
Probably the Program...
Ill try it out and get you an SS.. if you want.
but what bytes do we put in
Originally Posted by ac1d_buRn
Well i thought id create a tutorial on this, Since some people are asking. The code is NOT mine. Credits to pyroctain666 for the code and im not sure who made the program
First get your image and open it up in the converter provided.
Convert the image to bytes. The output bytes will be in the text file.
Define you bytes like this:
[php]
BYTE Menu[ ] = {output bytes here};
[/php]
In the globals, Put:
[php]
LPD3DXSPRITE Sprite;
LPDIRECT3DTEXTURE9 MenuTexture;
static BOOL Create = TRUE;
[/php]
Now, Go to your Endscene or Present and create your texture and sprite like so:
[php]
if(Create){
D3DXCreateTextureFromFileInMemory(Device,&Menu,siz eof(Menu),&MenuTexture);
D3DXCreateSprite(pDevice,&Sprite);
Create = FALSE;
}
[/php]
Now you need to draw the sprite (In Endscene or Present again)
[php]
D3DXVECTOR3 POS;
POS.x = 15;
POS.y = 15;
POS.z = 0;