In my program, I would like to define an array of colors (say, 10
or so) starting from white at index 0 to dark red at index 9. The
various indices between 0 and 9 should contain various shades of
red starting from light red up to a solid dark red. How do I define
the RGB values?
I tried going into the control panel and choosing suitable colors
(and RGB values) from there, but when I place these RGB values into
the array and run the program, the colors are wrong, taking on
shades of an ugly orange and purple nature.
Any suggestions?
James.
--
James Waletzky \ "There are very few problems that
University Of Manitoba / cannot be solved without a suitable
umwa...@ccu.umanitoba.ca \ application of high explosives."
wal...@ee.umanitoba.ca /
I have been trying to create an IMAGE of a form we use here at work.
What I want to do is instead of ordering forms, I would like to
somehow scan it in, or maybe use some kind of forms designing tool
to duplicate the form on computer, then when I need a copy of it, I
can just print it out. Eventually, I would like to enter the data
on computer as well and have them both print out.. I scanned the
form in on a HP scanner, a Mustek hand scanner, and another scanner
on a Macintosh. NONE of them looked good. even when I scanned them
at 300DPI, the files created were well over a meg, and they still
didn't print out like the original. I have also used Crystal Writer
to duplicate the form. That prints out real nice but whenever I
change any of the the text/lines fonts of the form, the whole line
size changes, throwing off the form.. All I want is a near exact
image of the form, keep it on computer, not have it such a HUGE
FILE, and also eventually, be able to put data on top of it (I am
using Visual Basic 3.0 for windows..) Does anyone have
any suggestions as to how to accomplish this task?? The form is
similar to say, a 1040 tax form.. it has some lines, lots of
text, and seldom any pictures.. If you have any suggestions, could
you please press "R" and reply to me privately? I seldom get a chance
to call in and when I do, this sub has 5 or 6 hundred new messages..
Thanks for all the help in advance.. By the way, Crystal Writer seemed
to work ok till I had to change the size of some of the fonts. Is
there something better than Crystal Writer?? Or is there a
scanner that is designed to do what I want?? Thanks again!
2. when you draw your object, you must:
(a) get an HDC (as usual)
(b) SelectPalette()
(c) RealizePalette()
(d) CreateSolidBrush() & SelectObject (as usual)
(e) draw something
(f) SelectObject & DeleteObject (as usual)
(g) give up the HDC (as usual)
3. you must also respond to the following messages:
(a) WM_QUERYNEWPALETTE
(b) WM_PALETTECHANGED
so your colours can be rendered correctly as other apps
create & realize their palettes and as various windows lose &
gain focus.
--
John A. Grant jag...@emr1.emr.ca
Airborne Geophysics
Geological Survey of Canada, Ottawa