Results 1 to 13 of 13

Thread: Transperancy

  1. #1
    arsenyg
    Guest

    Angry Transperancy

    Hi !

    I've got a transperant GIF image and when i add it to a picturebox it just hides


    What to do ? Help ! Help ! SOS !
    SOS ! SOS ! SOS ! SOS ! SOS !


    P.S.


    I've tried everything .....

  2. #2
    PowerPoster Fox's Avatar
    Join Date
    Jan 2000
    Location
    *afk*
    Posts
    2,088
    PictureBoxes dont support GIF transparency... use a ImageBox

  3. #3
    arsenyg
    Guest

    Unhappy Transperancy

    Tried It ..... Same as the picturebox

    Help .....

  4. #4
    PowerPoster Fox's Avatar
    Join Date
    Jan 2000
    Location
    *afk*
    Posts
    2,088
    Can you post the picture?

  5. #5
    arsenyg
    Guest

    Wink

    Thank U for the help !!!

    I've done it on the easy way ... API

    I Combined the orginal pic with it mask



    Bye !!!

  6. #6
    Junior Member
    Join Date
    Jun 2001
    Location
    Lv4-26
    Posts
    19
    API the easy way naaaa!!! ive used transparent gifs in graphic box's and they work fine however i tend to use 48x48 icons because i dont know what program to use to create transparent gifs.
    Help!, They're Gonna Get Me

  7. #7
    Aurilus
    Guest
    Nope, no way known that API is the easiest way to do it. Nor are icons the easiest way either... Although you can have 16-bit colour icons (which you can't do with a GIF) it works out cheaper resource-wise and filesize-wise to put a transparent GIF in your project than a whole heap of icons.

    You can create transparent GIFs with nearly any decent graphics program, Adobe Photoshop, Paint Shop Pro, etc. and also some decent free ones too.

    I don't see the point of putting both an image and a mask in a project .. too much effort for semi-decent results

  8. #8
    Lively Member The Hand's Avatar
    Join Date
    Jun 2001
    Posts
    88
    You can also create transparent GIFs with good old MS PAINT (That nasty tool that comes standard in "Accessories").

    1. Save the picture file as a .GIF file.
    2. Hit Ctrl-E or naviate to "Image...->Attributes".
    3. Select your transparent color.
    4. Resave the GIF image.

    Its not fun, its not pretty, but it does work.

    -Hand Out
    Visit EliteVB for slimy subclassing tricks and GDI32 goodness.

  9. #9
    Junior Member
    Join Date
    Jun 2001
    Location
    Michigan
    Posts
    23
    Using BitBlt I want to show an image on top of another image. The top image has the MAGENTA background, and i want that to be the transparent color. Can anyone help?

  10. #10
    Aurilus
    Guest
    Why BitBlt? Any specific reason? If this image is not going to be animating, why not just overlap two image boxes, but your background image in the bottom and your transparent image on top (saved as a GIF with transparency, of course.)?

    Personally I use Paint Shop Pro 7 to create my transparent GIFs and also do all my other image-manipulations. It's very useful and a trial version is also available AFAIK from www.jasc.com. You can do some pretty neat stuff very easily, like cutting the palette down to 256/16/X number of colours - I have rendered a very cool title for one of my programs in a nice detailed font, with transparency, with a very cool semi-rendered wooden effect all using only 15 colours. It is about 450x100 pixels in size and as it has quite large transparent areas and 'blocks' of the same colour it is only 5kb in size.

    Also what version of Paint are you using to do that? Mine doesn't do that (currently I'm running it on an NT4 system - is it 9x only?)

    - Aurilus

  11. #11
    PowerPoster Fox's Avatar
    Join Date
    Jan 2000
    Location
    *afk*
    Posts
    2,088
    I think it's the 'new' MsPaint coming with WindowsME

  12. #12
    New Member
    Join Date
    May 2001
    Location
    Birmingham, Al
    Posts
    5
    i used a transparent GIF in an image box but when the box moves it buts a green box around it does any one know what to do?

  13. #13
    Aurilus
    Guest
    OK.. this is kind of how I understand VB draws transparent GIFs..

    It draws the GIF with the green/magenta/whatever colour transparent area there, then goes back and removes all areas of that colour. That is why it flickers when animating transparent GIFs, or moving/stretching transparent GIFs. The bigger the picture, the more noticeable the effect.

    Why are you moving the box? And how?

    - Aurilus

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width