|
-
Jul 31st, 2007, 06:14 PM
#1
StretchBlt Blending
Hello
I'm StretchBlt'ing text (black text color, white background) onto an image. The image is a scanned copy of a hand-written form, with boxes for the different text fields I'm StretchBlt'ing in--I have to print the text inside these (blue outlined, almost white but non-solid fill color) boxes. (If you're curious, I'm using StretchBlt to horizontally squeeze the text as needed, to maximize use of space)
The trouble is, to set the printed text offset properly, the bounding box of the text needs to be under the bottom line of most boxes. So whenever I StretchBlt, part of the bottom line of the text box gets overwritten with the almost-white fill color from the text.
I've tried using the ScrAnd raster operation, but it only worked if I left the background picture unstretched (which I can't do).
So, I was wondering if there was a way I could blend the source and destination colors (but not pixel-by-pixel, that would be WAYY too slow). If I could simply take the darker of the two colors, that would be fine. Any thoughts are appreciated.
Thanks!
The time you enjoy wasting is not wasted time.
Bertrand Russell
<- Remember to rate posts you find helpful.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|