Re: a question about moving pictures
Tech Tip: Click here to run a free scan for Windows Errors and optimize PC performance
"Rencie" <Rencie@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote in message
news:28C672AD-A074-44C6-B704-CE7316D803E8@xxxxxxxxxxxxxxxx
> hmmm...I used the transparent properties of the image control
> in my animation. Can the PictureClip or BitBlt handle transparent
> pictures?
You can try the TransparentBlt API (as far as I recall it works in both
Win98 and XP). It's a bit slow though, especially for animation. A faster
alternative would be to create a mask of your picture (where the mask
specified which pixel are supposed to be transparent and which are not) and
then draw your "transparent" picture using a couple of standard BitBlts
(check out "sprite" routines).
Mike
.
Relevant Pages
- Re: Transparent Picture Box Control
... I've just had a look at that code and it uses a standard VB UserControl (with its BackStyle property set to Transparent) to achieve transparency, and it uses the standard VB PaintPicture method to draw the desired image into a hidden VB Autoredraw Picture Box so that it ends up with the drawn image in the Image property of the Autoredraw Picture Box. ... By the way, as a sort of footnote, using UserControls to create transparent "sprites" in this way does make it very easy to draw and animate them on your Form, because the UserControl looks after the drawing and the transparency and your code simply needs to set the Left and Top properties to appropriate values at run time to move the sprites around. ... (microsoft.public.vb.general.discussion) - Re: Inserting a picture in a file with a watermark
... I've always been a little suspicious of the graphics tools built into ... Save Options box check the option for "Save transparent color". ... Insert that GIF file into the Word document. ... seem to get the DRAFT watermark to show up through the picture. ... (microsoft.public.word.drawing.graphics) - Re: GIF image on a form
... Protected Overrides Sub OnPaintBackground ... better off looking for some picture control to take care of that for you. ... Just use DrawImage to render your GIF on the control ... The GIF has a transparent background. ... (microsoft.public.dotnet.languages.vb) - Re: Transparent color in GIF ignored
... Although treating gif transparent colors properly would be easier to use... ... > Using Picture Masks ... To keep certain white areas of your .bmp ... (microsoft.public.fox.programmer.exchange) - Re: GIF image on a form
... Protected Overrides Sub OnPaintBackground ... better off looking for some picture control to take care of that for you. ... Just use DrawImage to render your GIF on the control ... The GIF has a transparent background. ... (microsoft.public.dotnet.languages.vb) |
|