Qazek Posted April 22, 2013 Author Share Posted April 22, 2013 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 More sharing options...
boyesjs03 Posted April 22, 2013 Share Posted April 22, 2013 ' Make your declarations:Dim x as long, y as long, sprite as long, height as longDim Width as long' Then show the height of the picture and where it should be on the screenWidth = # (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 More sharing options...
DMF Posted April 22, 2013 Share Posted April 22, 2013 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 More sharing options...
boyesjs03 Posted April 22, 2013 Share Posted April 22, 2013 Yeah, you sent me it in PM ![;)](http://www.touchofdeathforums.com/community/public/style_emoticons/<#EMO_DIR#>/wink.png) Link to comment Share on other sites More sharing options...
abhi2011 Posted April 23, 2013 Share Posted April 23, 2013 You also need to add in the x and y of the picture. Link to comment Share on other sites More sharing options...
boyesjs03 Posted April 23, 2013 Share Posted April 23, 2013 I already said that. Link to comment Share on other sites More sharing options...
abhi2011 Posted April 23, 2013 Share Posted April 23, 2013 The one you said was the DestinationX and DestinationY (The coords where is should be rendered.)I said about the SourceX and SourceY. Link to comment Share on other sites More sharing options...
boyesjs03 Posted April 23, 2013 Share Posted April 23, 2013 Ah. Link to comment Share on other sites More sharing options...
caimage Posted June 3, 2013 Share Posted June 3, 2013 hi there rasteredge's image app have the function of [drawing on images c#](http://www.rasteredge.com/how-to/csharp-imaging/image-drawing-text/), if you are interesed in this aspect, you can take a look. Link to comment Share on other sites More sharing options...
abhi2011 Posted June 3, 2013 Share Posted June 3, 2013 This is VB6 not C#. This is not the .net framework. Please don't bump topics. Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now