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

How to draw png image


Qazek
 Share

Recommended Posts

Hello!

Is there any example for drawing any image on frmMain picScreen in EO 3.0 with DX8?

I need to render player HP bar in picScreen not in Image like now. Could someone show me how to do that?

Or just show how to render any png image on picScreen.

Thank you!
Link to comment
Share on other sites

' Make your declarations:

Dim x as long, y as long, sprite as long, height as long

Dim Width as long

' Then show the height of the picture and where it should be on the screen

Width = # (number of Width)

Height = # (number of Height)

x = # (number of X)

y = # (number of Y)

'Tex_GUI(#) the "#" is the number of the image in ur gui folder.

RenderTexture Tex_GUI(#), x, y, 0, 0, Width, Height
Link to comment
Share on other sites

OFF TOPIC : >.> i feel like a ive seen dis EXACT text before i wonderwhere . >.>(at peace)

on topic: the above cod is for a image and there is a code like it for text if your looking for that too.

same declares as the above code.

```

x = # (number of X)

y = # (number of Y)

Width = EngineGetTextWidth(Font_Georgia, "Test")

RenderText Font_Georgia, Test, x, y, Black, , ,

```

; P
Link to comment
Share on other sites

  • 1 month later...

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...