Ander
04-04-2002, 06:57 PM
Hi,
Greetings from Canada (just like the Subject said).
You guys seem to know a lot about VB. I've checked all the books and sites
I could---and even asked a few "experts"---but no one seems to know how to
do this...
I'm writing a program to make chess diagrams for webpages. I have a chess
font, and all I want to do is create a GIF of a diagram composed from the
various characters.
I have a control that converts a picture box's contents to a GIF, so that's
no problem. I just can't figure out how to combine the chess characters with
a background color in one picture box.
If I just set the picture box's background color, it shows through the unfilled
parts of the text characters, too.
The chess font does contain a set of black outlines for each piece---so if
I could combine a piece character with an outline character, I could control
both of their colors with no problem. But how can I print two characters
(or images, if I print them to separate picture boxes first) to the _same
area_ of a picture box, without one wiping out the other?
Alternately, is there a non-crazy way to print the chess-piece characters
(or their images) to a picture box, then fill in the colors of the squares
around them---without disturbing the "pieces" themselves?
Thanks for your help!
Greetings from Canada (just like the Subject said).
You guys seem to know a lot about VB. I've checked all the books and sites
I could---and even asked a few "experts"---but no one seems to know how to
do this...
I'm writing a program to make chess diagrams for webpages. I have a chess
font, and all I want to do is create a GIF of a diagram composed from the
various characters.
I have a control that converts a picture box's contents to a GIF, so that's
no problem. I just can't figure out how to combine the chess characters with
a background color in one picture box.
If I just set the picture box's background color, it shows through the unfilled
parts of the text characters, too.
The chess font does contain a set of black outlines for each piece---so if
I could combine a piece character with an outline character, I could control
both of their colors with no problem. But how can I print two characters
(or images, if I print them to separate picture boxes first) to the _same
area_ of a picture box, without one wiping out the other?
Alternately, is there a non-crazy way to print the chess-piece characters
(or their images) to a picture box, then fill in the colors of the squares
around them---without disturbing the "pieces" themselves?
Thanks for your help!