Home All Groups Group Topic Archive Search About
Author
21 Jun 2009 2:17 AM
Lorin
I am working a VB6 app that I need to do the following:
Put image A into a picturebox.
Stamp image B on to Image A.
However, I need to have image B have transparency two ways.
I need to set the Alph of the entire image B and, the hard part for me, to
have one color totally transparent for image B.
I know how to do everything except for the very last part, the totally
transparent areas.
Any of the following would be helpful
  Sample code?
  Terminology?
  Links?
Not too much geek speak please as I am not far into imaging.

Author
21 Jun 2009 2:24 AM
Bill McCarthy
Hi Lorin,

You can use the AlphaBlend API function. A quick search on google shows many
hits:
http://www.google.com/search?hl=en&safe=off&num=100&q=%2BAlphaBlend+%2BVB6&btnG=Search&lr=lang_en&aq=f&oq=&aqi=


Show quoteHide quote
"Lorin" <Lo***@discussions.microsoft.com> wrote in message
news:3FD0A111-63A2-4106-B0CB-6B9ABC64A82A@microsoft.com...
>I am working a VB6 app that I need to do the following:
> Put image A into a picturebox.
> Stamp image B on to Image A.
> However, I need to have image B have transparency two ways.
> I need to set the Alph of the entire image B and, the hard part for me, to
> have one color totally transparent for image B.
> I know how to do everything except for the very last part, the totally
> transparent areas.
> Any of the following would be helpful
>  Sample code?
>  Terminology?
>  Links?
> Not too much geek speak please as I am not far into imaging.
>
Author
21 Jun 2009 3:20 PM
Lorin
I already know about and use AlphaBlend to make the whole image transparent
at some alpha level.
But I want to additionally make one color totally transparent.
e.g. the image B is my graphical initials on a white background.
When I stamp using alphablend the white is still there all be it transparant
as set by the alpha value.
I want the white to totally transparent so the initials stand alone at the
alpha level, say 128, that I want.
I also know how to make something similar using a form that will make one
color totally transparent.
I have not be able to fathom how to do both as I have seen some places.
I also know how to overlay text on an image to get the effect I want, but in
this case I want, I want to do it with an image stamp not text.


Show quoteHide quote
"Bill McCarthy" wrote:

> Hi Lorin,
>
> You can use the AlphaBlend API function. A quick search on google shows many
> hits:
> http://www.google.com/search?hl=en&safe=off&num=100&q=%2BAlphaBlend+%2BVB6&btnG=Search&lr=lang_en&aq=f&oq=&aqi=
>
>
> "Lorin" <Lo***@discussions.microsoft.com> wrote in message
> news:3FD0A111-63A2-4106-B0CB-6B9ABC64A82A@microsoft.com...
> >I am working a VB6 app that I need to do the following:
> > Put image A into a picturebox.
> > Stamp image B on to Image A.
> > However, I need to have image B have transparency two ways.
> > I need to set the Alph of the entire image B and, the hard part for me, to
> > have one color totally transparent for image B.
> > I know how to do everything except for the very last part, the totally
> > transparent areas.
> > Any of the following would be helpful
> >  Sample code?
> >  Terminology?
> >  Links?
> > Not too much geek speak please as I am not far into imaging.
> >
>
>
Author
21 Jun 2009 3:50 PM
Bill McCarthy
Hi Lorin,

For the AphaBlend to work the image has to be 32 bit, and you should have
set the alpha value of the bits you want transparent.


Show quoteHide quote
"Lorin" <Lo***@discussions.microsoft.com> wrote in message
news:AB968DE8-FC20-4DDD-8AC7-CA6EA6A427B9@microsoft.com...
>I already know about and use AlphaBlend to make the whole image transparent
> at some alpha level.
> But I want to additionally make one color totally transparent.
> e.g. the image B is my graphical initials on a white background.
> When I stamp using alphablend the white is still there all be it
> transparant
> as set by the alpha value.
> I want the white to totally transparent so the initials stand alone at the
> alpha level, say 128, that I want.
> I also know how to make something similar using a form that will make one
> color totally transparent.
> I have not be able to fathom how to do both as I have seen some places.
> I also know how to overlay text on an image to get the effect I want, but
> in
> this case I want, I want to do it with an image stamp not text.
>
>
> "Bill McCarthy" wrote:
>
>> Hi Lorin,
>>
>> You can use the AlphaBlend API function. A quick search on google shows
>> many
>> hits:
>> http://www.google.com/search?hl=en&safe=off&num=100&q=%2BAlphaBlend+%2BVB6&btnG=Search&lr=lang_en&aq=f&oq=&aqi=
>>
>>
>> "Lorin" <Lo***@discussions.microsoft.com> wrote in message
>> news:3FD0A111-63A2-4106-B0CB-6B9ABC64A82A@microsoft.com...
>> >I am working a VB6 app that I need to do the following:
>> > Put image A into a picturebox.
>> > Stamp image B on to Image A.
>> > However, I need to have image B have transparency two ways.
>> > I need to set the Alph of the entire image B and, the hard part for me,
>> > to
>> > have one color totally transparent for image B.
>> > I know how to do everything except for the very last part, the totally
>> > transparent areas.
>> > Any of the following would be helpful
>> >  Sample code?
>> >  Terminology?
>> >  Links?
>> > Not too much geek speak please as I am not far into imaging.
>> >
>>
>>