Applications Graphics & Sound Computer Graphics 2D Graphics Windows  

a "minimum" WinG sample application (C) by R.Hess

download download  
important code information
author:
winG
minimum requirements:
a "minimum" WinG sample application (C) by R.Hess description

This is a very quick sample application that illustrates what could be considered a 'minimum' WinG application.


STATIC - A WinG Sample Application
--------------------------------------------------------------------------
Written by Robert B. Hess


This is a very quick sample application that illustrates what could be
considered a 'minimum' WinG application.

What it does, is create a bitmap, and gets a pointer to the data buffer
associated with the bitmap. It also creates a palette, and properly
associated this palette with the bitmap, and then it randomly selects
a color index for the first pixel in the bitmap, and then proceeds to
walk the entire bitmap, indexing the color of each pixel based on the
first pixel.

To use this as a starting point for your WinG application, you would want
to modify the code that sets the colors of the selected palette (I'm just
using random values), and then you would want to modify the code that is
being used to assign the values of the pixels to be appropriate for your
application.

The files used in this sample are:

The Source Files:
Static.C
Static.H

The Resource File:
Static.RC

Some additional files:
Static.DEF
Static.ICO

'Human Readable' nmake scripts:
MAKEFILE - 32 bits
MAKEFILE.16 - 16 bits

VC++ Generated nmake scripts:
Static32.MAK - 32 bits
Static16.MAK - 16 bits

The executable images:
Static32.EXE - 32 bits (Intel)
Static16.EXE - 16 bits


Over time, this program will most likely be updated to include new or
more accurate information and methods. Please be sure to check back
with the location that you downloaded this from in order to see if
a newer version exists.


-Robert



File List:
MAKEFILE3Kb
MAKEFILE.161Kb
README.TXT2Kb
STATIC.C26Kb
STATIC.DEF182b
STATIC.H493b
STATIC.ICO1Kb
STATIC.RC1Kb
STATIC16.EXE9Kb
STATIC16.MAK2Kb
STATIC32.EXE20Kb
STATIC32.MAK7Kb

Similar code
Animation kit v1.0B (Popularity: ) : the animation kit contains robust samples for animating bitmaps, text, and cursors taken from the popular game jewel thief (on cd as jwlthf.Zip). With C source.
User reviews

Write a review:
1 2 3 4 5 6 7 8 9 10
1=poor 10=excellent
Write review*
Your name*
Email*
  (Comments are moderated, and will not appear on this site until the editor has approved them)
 
Rate me
supported os
stats
downloads 12
version
size in Kb 27
popularity   417/7913374
user rating 0/10
ad


New Code
Popular Code