Advertisement

Results for "Category: Graphics/ Sound"

6_2008-2009 #204148
Plotting sine, cosine and tangential waveforms

This program is part of a larger project; one which involves plotting the curve for any given eqyuation. If someone wants to develop that program jointly with me, or has any useful tip concerning it please email me. Meanwhile check out this program...

6_2008-2009 #204463
Translucent window under Win9x/ME/2000

This is a nice example which shows you how to create a translucent window under Windows 9X/ME. Windows 2000/XP has an own function for this. Windows 98 AlphaBlending functions, but Windows 95 has nothing, so I decided to use a external function for AlphaBlending (win9x) and I used for Windows2000 the SetLayeredWindowAttributes function. The functions in gdiu.cpp were written by Graus an other programmer who works for a Programmer's Journal. To use the code in your own applications copy the files win9Xtranslucent.cpp, win9Xtranslucent.h, win2000translucent.cpp, win2000translucent.h into your project and look at translucent.cpp, win9Xtranslucent.h, win2000translucent.h how to use the functions. IMPORTANT: The code is not perfect! So it can be optimized. If you want to optimize the code do it like you think it's good for your project :-) For best optimitation the code must be rewritten into DirectX code. HOW DOES IT WORK: When the application starts a copy of the desktop will be made (WM_CREATE). On the first WM_PAINT message a copy of the window will be made. The WM_PAINT message is the message where the most work is. First we calculate the size and position of the window, then we check the intersection between the backuped size, position and the new size, position. If there is a intersection we copy a section from our background backup bitmap into the new background bitmap to hide the old window. Then we copy the new position, size to the backup position, size. Now we create 2 bitmaps: the first is a copy of the window rectangle from the screen (without the window), the second is a copy of the window. This 2 bitmaps are the arguments of the AlphaBlendU function which will create a new bitmap. This bitmap will be drawn on the screen. And at last we create a new copy of the screen. The old copy is the background backup bitmap. On WM_WINDOWPOSCHANGED message we POST a WM_PAINT message to our window for updating. NEW: In this version the size of the window can be changed! _____________________________ Please vote it :-) Sorry for my bad english.

6_2008-2009 #204483
Image Resize (Aspect Ratio, Actual Resize)

I've search the PHP codes, found two folks who have published resize code. Problem with one , is that it only gives you the new size but you set it in the HTML's IMG tag, which is dumb in my opinion because you still are downloading the entire image. Another submision did the same, except you could use a width, but they did a loop decreasing the size times .5 until it was close as it can get to the width you wanted, problem with this was it was slow. In either case neither actually resized the image just defined a new size. I took an hour did some reasearch at php.net, and found basic information to make this code.

6_2008-2009 #204621
How to compile sound files directly into an exe.

Shows a technique for having wav files compiled directly into an executable.

6_2008-2009 #204691
Resizable Image viewer, slideshow, mostly for jpg) - "Quick Flipper"

This app is a tight little image viewer. It's resizable and the aspect ratio is not affected during resize. It allows for slideshow, stay-on-top, image list editing. It's mostly for jpg's but the ctrl that displays the image can be used for any image type.

6_2008-2009 #204692
Artificial Life/Evolution Simulator. OpenGL, 3D world environment.

Pretty cool 3D lower level AI simulator. There is a food chain. The low creatures eat the stationary food, the high creatures eat the low creatures. Once a pair 'mates', the mother carries eggs with her for a while. Once a counter is reached, the eggs hatch. This counter varries with genetics. When a pair mates, the child's DNA is composed of 40% mother's genes, 40% father's and 20% random. The genes contain information that controls the creatures behavior. This behavior works like Maslow's heirarchy of needs. There are 4 states, Look For Food, Look For Mate, Run Away, Roam Around. Genes contain a priority for each state. A creature will not do a priority 2 state if the requirements for priority 1 are not satisfied. These tolerances for these requirements are also contained in the genes.

6_2008-2009 #204976
CapturePicture

This code uses Video for Windows to capture single frames from a system video source in a specified time interval(in seconds). The Frames are saved as Bitmaps or as one AVI File. Don't forget: You need a videodevice for this to work!

6_2008-2009 #205160
Back Buffer

Here is an example of how to use back-buffer device contexts for on-screen animation; the basis for all graphical games

6_2008-2009 #205161
Bitmap Loading

Shows how to load bitmaps of any size and stretch them onto a window.

6_2008-2009 #205162
Shape window to bitmap

This example shows you how to shape your applications window to any bitmap in a resource really good looking effect for your apps.

6_2008-2009 #205169
Bitmap Fading

This example shows how to fade one bitmap into another. Shows how to use GetDIBits for fast image manipulation. Also features images of Anna Kournikova :O).

6_2008-2009 #205455
DOS Paint

A fully functional 2D Graphics Editor ( Screen Editor ), that is an MS Paint like utility for DOS.

6_2008-2009 #205550
Electronic address book

This is a nice electronic address-phone book. Is completely designed in graphic mode. With this program you can save, delete and search information of your friends, family and companies. To use this program you have to increase the memory that borland C use, at least 256 Kb. I wrote this program to get the final grade in C programming. This program is written in spanish. Please, vote for this code!!

6_2008-2009 #205574
Graphics.h

This is the graphics header file for all of you who need for making graphics. if you need any other header files, don't hesitate to ask... and yes please comment on the programs I have writen.

6_2008-2009 #205635
Micro Mp3 Player

A simple Mp3 Player for a simple man. Base on article by:BLaZe found http://www.codeproject.com/audio/mp3player.asp

6_2008-2009 #205636
Micro Media Player Ver 1.0

The smallest media player ever! no sdk or dlls require,it can play this file formats *.wav, .snd, .au, .aif, .aifc, .aiff, .wma, .mp3, .cda, .mid, .rmi, .midi, .mpeg, .mpg, .m1v, .mp2, .mpa, .mpe, .avi, .wmv, .asf, .wm, .wma, .wmv. and much more with only a few lines of code.If you like this program or find it useful please vote.

6_2008-2009 #205688
Dynamic Surveysystem v1

Dynamic Surveysystem v1 Just take a look at the best: -Simply administration functions (like all of my programs) -Premade grafics -Totally dynamic: You only have to edit ONE file and my program modifies all the others automatically. -Cookie based voting: To prevent one user voting several times. Just download it and enjoy this great Surveysystem coded by Guo Xu. You won't be dissappointed. And by the way, don't forget to vote for a 15 years old asp programmer ;) This code was tested on Win 98 SE/PWS and Win2K Server/IIS5. To create or edit a survey just load setup.asp from your browser once setup.asp is uploaded to your server. Of course you can change the grafics of the surveybars. The easiest way is to open the default grafic in the grafix folder and modify them in an Editor like Photoshop, Photo Impact, Fireworks. NOTE: You better dont modify the size of the grafix. If you do some errors may occur.

6_2008-2009 #205988
Load a BMP from a file

This is a simple, easy to use function that shows how to load a bitmap from a file then bitblit it to a window.

6_2008-2009 #206002
Make a companion (kinda)

Have you ever needed a to hear something from your computer besides that grinding it makes and the humming? MAKE IT TALK!!!

6_2008-2009 #206083
Function Generator

The function generator produces sine, square, triangle waves or pink noise. This program allows you to use the line output of your sound card for testing circuits or speakers. Useful for speaker testing.

Languages
Top Categories
Global Discovery