Post by Izy Coder on Apr 29, 2015 23:44:12 GMT 10
how to make a better graphic in vb.net? I make a game in vb.net using a lot of picturebox but it look so bad It's like flashing. like it will load the first picturebox until end. I want it to load all picture at at the same time not like picturebox1 then picturebox2 then picturebox3 and so on... also i have heard about wpf, what is wpf? can I make game with wpf?
Check Out My Project At VSlang InternetTM. More Project : - Poroxnoss Text Editor 2 - Added soon...
- TAP 2D Game Maker - Coming really soon...
- Easy Desktop - Discontinue..
|
|
Post by Deleted on Apr 30, 2015 3:09:13 GMT 10
My Opinion, WPF mean WinForms
|
|
Post by Imformas on Apr 30, 2015 14:32:50 GMT 10
Little googley search. Windows Presentation Foundation (WPF) is a next-generation presentation system for building Windows client applications with visually stunning user experiences. With WPF, you can create a wide range of both standalone and browser-hosted applications. and you could just use a new bitmap to load the graphics, Dim bitmap As New Bitmap(yourwidth, yourheight) Dim graphics As Graphics.FromImage(bitmap)
When you are done drawing your image use bitmap.Dispose() to dispose all objects.
Programming language'sCSharpC++CObjective-CVBProject'sSharpMediaSharpEditYoutifygithub.com/Stephen-Fox-0
|
|
Post by Izy Coder on Apr 30, 2015 19:35:18 GMT 10
Little googley search. Windows Presentation Foundation (WPF) is a next-generation presentation system for building Windows client applications with visually stunning user experiences. With WPF, you can create a wide range of both standalone and browser-hosted applications. and you could just use a new bitmap to load the graphics, Dim bitmap As New Bitmap(yourwidth, yourheight) Dim graphics As Graphics.FromImage(bitmap)
When you are done drawing your image use bitmap.Dispose() to dispose all objects. not work
Check Out My Project At VSlang InternetTM. More Project : - Poroxnoss Text Editor 2 - Added soon...
- TAP 2D Game Maker - Coming really soon...
- Easy Desktop - Discontinue..
|
|
Post by Imformas on Apr 30, 2015 20:54:40 GMT 10
Becuase you have to draw the image with e.Graphics.DrawImage(bitmap, YourXLocation, YourYLocation)
Programming language'sCSharpC++CObjective-CVBProject'sSharpMediaSharpEditYoutifygithub.com/Stephen-Fox-0
|
|
Post by Nathan Lecompte on May 1, 2015 16:16:37 GMT 10
This is generally just something that happens, lag. What Imformas is showing you is an alternative way of inserting images by just painting them onto your form instead of having completely separate controls for them, in other words; painting graphics and such should be a lot faster than just inserting multiple components. There are also other ways you can use to speed up performance; what I recommend is use Imformas 's tip and paint most of your images/graphical content and use something called GC (GarbageCollection) Mentioned here: techviewhd.freeforums.net/post/87 <this should help get rid of any excess memory etc. Hope this helps!
|
|