Jump to content
Search In
  • More options...
Find results that contain...
Find results in...

Transparency JPG To PNG


dehysqop
 Share

Recommended Posts

Hi hum… Yes i just download the Apocalypse Engine from EO3.0 but the problem is that the UI is in JPG and I need a Transparent UI without loosing quality like JPG. That's why i'm looking to know how am I supposed to convert the JPG to .PNG .

I found some line like : 

```
frmMain.picInventory.Picture = LoadPicture(App.Path & "\data files\graphics\gui\main\inventory.jpg")

```
and then i edit it for :

```
frmMain.picInventory.Picture = LoadPicture(App.Path & "\data files\graphics\gui\main\inventory.png")

```
But it make me an error that it can't find the image. How can i fix that? Thank you guys ^^

'Sorry for my mad english… i'm french..'
Link to comment
Share on other sites

Because you're a using the LoadPicture method to load a file type that is not supported. If you want to use a PNG file then you must use DirectX8 to render that image to the PictureBox.
Link to comment
Share on other sites

Hum like that ? 

```
With GUIWindow(GUI_INVENTORY)
.x = Val(GetVar(filename, "GUI_INVENTORY", "X"))
.y = Val(GetVar(filename, "GUI_INVENTORY", "Y"))
.Width = Val(GetVar(filename, "GUI_INVENTORY", "Width"))
.Height = Val(GetVar(filename, "GUI_INVENTORY", "Height"))
.Visible = False
End With

```
Link to comment
Share on other sites

  • 2 weeks later...
Just adding it in won't work. You'll have to render the image. Almost all engines on the forums use DX8\. Just go to modGraphics or whateever the name of the graphics module and look at how the rendering takes place. 

**A DX7 engine will not work!**
Link to comment
Share on other sites

I suggest you learn how graphics are handled in the module, if you are able to render a png file on to the screen then you'll eventually find many ways to alter ur game graphics and animations. Also u need to get rid of the picture boxes and rewrite how the GUI is being handled on ur engine. Lastly confirm ur engine is using directx 8.
Link to comment
Share on other sites

> Umm am I the only one that realizes that mspaint doesn't support transparency .-. even WITH a PNG

Probably not. However, that wasn't the problem I was addressing.

> i'm looking to know how am I supposed to convert the JPG to .PNG .
>
>  
>
> But it make me an error that it can't find the image. How can i fix that? Thank you guys ^^

While it wasn't what he meant, the way he wrote it made it look to me that he didn't know how to convert a jpeg to a png. Don't be so quick to criticize ;)
Link to comment
Share on other sites

Maybe take a look at my tutorial i made on directx8 rendering.

[http://www.eclipseorigins.com/community/index.php?/topic/133940-basic-dx8-rendering/](http://www.eclipseorigins.com/community/index.php?/topic/133940-basic-dx8-rendering/)

It's kinda complicated for beginning vb6 programmers.

But it's the only dx8 rendering tutorial around here i think.
Link to comment
Share on other sites

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
 Share

×
×
  • Create New...