Results for "Category: Graphics/ Sound"
converting text to picture
Simple Media Player. It can play MP3, OGG, AVI, MPG and other file types. This source code doesn't use any controls but only API functions.
Just an example of playing with Images
Crops a section from an Image,It helped me I hope it helps you.
A program to make screenshots and save it in jpeg format. The program it's works invisible when it's do a screenshot.
This code compares two images of the standard C#/.NET supported types for equality taking into consideration size, pixel equality and more. I needed a fast way of doing this as an alternative to the slow managed GetPixel and SetPixel. By accessing the bitmapdata directly with pointers, this method is endlessly faster and thrust me it's worth it in the end.
This program displays a clock.Importantly, this program won't prompt for any input, but it will respond to input's (in the form of key press events). Normally in c we can't get the input without prompting for it, but this program gets the input without prompting and proceeds accordingly.
By Using THis Code We Can Develop User Desinged Cursors In DOS Mode. It Is A Very Good Code To Design Cursors, Also I Have Included A Tutorial On Mouse Cursors In DOS.
This is an example application that shows how to draw charts in c# on .NET framework 2.0. This application draws 4 types of charts (Line chart, Column chart, Pie chart and Scatter chart) along with gridlines and title options.
DDA LINE ALGORITHM,BRESENHAM'S LINE ALGORITHM,BRESENHAM'S CIRCLE ALGORITHM,DRAWING CIRCLE TRIGONOMETRIC METHOD,SHEARING,TRANSLATION,SCALING,ROTATION ABOUT AN ORIGIN AND ANY POINT,BEZIER CURVE NTH ORDER ETC.
This Program generalizes how Reservation is done. It comprises of graphics and sound effects. Even mouse is used in it. It will be great to present this one as a project. Enjoy.
Movie Player
This is a simple demonstration of how to draw rotated text with or without an outline onto an image, and move it around with the mouse.
to give informations.
An MP3 encoder using a GUI. Very simple, easy-to-use program that gives you the option of using two encoding engines. The GUI was written in Visual Basic, but the encoder was written in C. Enjoy!
Gravity Simulator that uses the OpenGL Libraries. I used the GLUT event handler interface to control Mouse functions. Found at: http://modzer0.cs.uaf.edu/~hartsock/C_Cpp/OpenGL/Gravity.html
This code is an example how to use a random color generator and a table to create a Bar Chart.
The best way to flood fill is to use ExtFloodFill. Absolutely vital functionality for graphics applications. Trouble is it doesn't lend itself for use with .NET. Your only alternative to ExtFloodFill is to use recursive routines to scan an image and change pixels colors appropriately. This can be quite inefficient and take an unreasonable amount of time to perform. There was quite a good example last month here on PSC and I've seen a good one by Bob Powel. Searching on the intenet for ExtFloodFill and .NET will return many examples of people wanting to use ExtFloodFill but I have yet to see a solution. So here it is.
A powerful Class Library for pretty much all of your movie playing needs. No 3rd party controls or DirectX to worry about. Uses the established MCI command interface. Designed to be easy to use, understand, and implement. The compiled Library is only 32KB. The Class was written in VB.Net. But once the Class is compiled, it can be used by any .Net language. Add COM Interop if you want to use it for the Classic Visual Basic versions. This Library includes over 55 subs, functions, and propertys to make a full and feature rich movie application. Some of the features include: Getting the movie and audio status. Get or Set the playing position in frames, millseconds or seconds. Get the length of the movie in frames, milliseconds or seconds. Get the nominal frame rate and frames per second. Play the movie in a child window or the default window. Play the movie in full screen or custom tune the location and size of the movie. Set the volume level for each channel separately or set the level for both channels. Shutdown the audio or video output. Can even change the speed at which the movie plays. There are many more features available that I don't have time to write. In this Class Library I include a simple Application to show some of the features or to get you started on using the library. This Library took a bit of time and work to build. So, it would be nice to get some feedback and comments on how to improve it. Please feel free to vote and visit my website at: http://www.vbcodesource.com. Hope you find this Class Library useful and beneficial. Note: the .dll file will most likely be stripped from the zip file. So, you will most likely need to recompile the Class Library project.
The purpose of this is to show various Win32 Methods and some Theory. It creates a Win32 Extended class, it then Creates and Extended Window, it then starts to show that basics of Win32 Game Programming, that is an infinite loop. This shows a good theory of how to initialize variables in game programming. At first my approach was to initialize the variables in the loop and use a BOOL to say it was the first time in the loop, then on my third look at how the code was working I found the fastest way to set the first time variables, outside the loop, rather than having the computer check an if statement was true, this was the theory. This programme starts at a random position (the initializing theory), (in the loop) draws a line to a new random position, then sets the end of the line to the beginning of the new one (this is where the loop ends).