Merging Of Images

new topic     » topic index » view thread      » older message » newer message

------=_NextPart_000_01BC4871.353FA8C0


Okay, seeing that people are concerned about the lack of EuphoriaSpeak in
this mailing list, I decided to kill two birds with one stone. I have a
question about a design problem I've encountered during my coding of "A
Beginner's Guide To Euphoria" 2.00. Not only will this make the topic
worshippers happy, I'll get some good advice from the graphics pros.

I'm attempting to overlay a W shaped graphics image (in the form of a
chapter index list) over another graphics image that contains changing
data. I've included the image as part of this letter in GIF format. My
apologies to those who feel this is unnecessary overhead, but I feel
studying the image will help you understand my problem. Because the image
is W shaped, bits of the background screen should appear between the
"fingers" of the image. This means simply doing a save_image() of the
background followed by a display_image() won't work. I've gotten the W
image to appear properly on the screen but it takes a little time because I
merge bits of the background between the fingers before displaying. To do
this takes 1 second on my P-90 but 4 seconds on a 486SX-25. Not acceptable.

I've tried xor_bits(), and_bits() and or_bits() to merge the two images
together. It works VERY fast but the resulting union causes the W image to
appear in different colours. I have two alternatives left. One is to
display the W image in 4 separate display_images() as rectangular shapes,
but that would make the W image appear in steps, and would be particularly
noticable on a slower machine. The other would be to redo the W image in
false colours so the resulting and_bits(), or_bits() or xor_bits() would
make it appear in the correct colours.

Any help from the graphics experts of this listserv would be appreciated.

Thanks

David Gay
http://www.interlog.com/~moggie/Euphoria
"A Beginner's Guide To Euphoria"




------=_NextPart_000_01BC4871.353FA8C0

new topic     » topic index » view thread      » older message » newer message

Search



Quick Links

User menu

Not signed in.

Misc Menu