The MASM Forum Archive 2004 to 2012

Project Support Forums => OpenGL Forum => Topic started by: zemtex on July 26, 2011, 08:19:37 PM

Title: GDI+ samples
Post by: zemtex on July 26, 2011, 08:19:37 PM
Hi. Do anyone have a sample of using GDI+ ?

I know it doesn't fully fit in this forum, but it was the closest graphics-related forum I could find.

I'd prefer a sample where you clear the background, draw a few bitmaps, pixels and shapes. Would be nice  :U
Title: Re: GDI+ samples
Post by: jj2007 on July 26, 2011, 08:26:31 PM
Search the Forum for gdiplus - 3 pages of threads.
Title: Re: GDI+ samples
Post by: zemtex on July 26, 2011, 08:29:20 PM
I found only my own thread when I searched "GdiPlus" but I found many others when I searched for "Gdi+"

Strange.  :P

Even more strange, after I performed another search with GdiPlus I got many results.
Title: Re: GDI+ samples
Post by: qWord on July 27, 2011, 03:14:43 PM
GDI+ (http://msdn.microsoft.com/en-us/library/ms533798(v=vs.85).aspx)
What you can use: Flat API (http://msdn.microsoft.com/en-us/library/ms533969(v=VS.85).aspx). For some function, ist can be really usufult to take a look in M$'s calss (http://msdn.microsoft.com/en-us/library/ms533958(v=VS.85).aspx) declaration, that comes with Visual C++ (the GDI+ classes are calling the flat API functions)
Title: Re: GDI+ samples
Post by: zemtex on July 27, 2011, 04:32:39 PM
Thanks

Do provide a sample if you wish, nothing too advanced.
Title: Re: GDI+ samples
Post by: dedndave on July 27, 2011, 04:35:24 PM
if you use advanced search "GDI" - user name "donkey"
Edgar posted some nice examples a while back
Title: Re: GDI+ samples
Post by: qWord on July 27, 2011, 05:42:53 PM
Quote from: zemtex on July 27, 2011, 04:32:39 PM
Thanks

Do provide a sample if you wish, nothing too advanced.
see attachment
Title: Re: GDI+ samples
Post by: Vortex on July 27, 2011, 05:56:17 PM
Hi zemtex,

Here are some examples by Jeremy Gordon :

http://www.masm32.com/board/index.php?topic=5673.0
Title: Re: GDI+ samples
Post by: zemtex on July 28, 2011, 11:54:40 PM
Alright thanks

qWord: The included file, is that a different than from the masm\include folder?
Title: Re: GDI+ samples
Post by: zemtex on July 29, 2011, 02:03:29 PM
I found a GDI+ sample on the forum called StarfieldSimulation, nothing really advanced but really amusing to watch

http://www.masm32.com/board/index.php?topic=1013.0
Title: Re: GDI+ samples
Post by: dedndave on July 29, 2011, 04:25:35 PM
many of the stars disappear as they are coming toward you   :P
they should become larger
don't stare at it too long, though   :eek
Title: Re: GDI+ samples
Post by: zemtex on July 29, 2011, 07:21:43 PM
MeteoriteSimulation would be a fitting name for it.
Title: Re: GDI+ samples
Post by: zemtex on August 25, 2011, 09:33:34 PM
Here is a ball demo if you like to watch such things. Nothing big, click left or right mouse button to send the balls going again. I made it a few years back and it is not assembly however. Just for amusement.
http://www.filedropper.com/balldemo
Title: Re: GDI+ samples
Post by: hutch-- on September 22, 2011, 08:06:22 AM
Inrterestingly enough the starfield simulation is well done, the disappearing stars occur at the distance where they go out of focus, the origins seem to handle the visual acceleration rate realistically so all up its well done.

Bothered to have a quick play with it, if you seriously increase the star count you can make it look like its raining and you are looking straight up with a light pointing upwards.