.Net Development
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me

The Shed is going Social! Join us on FaceBook and Twitter and chime in on the conversation.

Go Back   Dev Shed ForumsProgramming Languages - More.Net Development

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
  #1  
Old October 9th, 2003, 02:19 PM
Anibal Hernande Anibal Hernande is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jul 2003
Posts: 33 Anibal Hernande User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 10
How to make a GIF inside a picturebox transparent

How to make a GIF inside a picturebox transparent

Does anyone knows how to make an animated GIF inside a picturebox transparent, so the background of the form can be seen?

Thanks

Andy

Reply With Quote
  #2  
Old October 9th, 2003, 02:55 PM
manual63's Avatar
manual63 manual63 is offline
Sk8er Punk!
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Oct 2003
Location: Minneapolis, MN
Posts: 96 manual63 User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 10
Send a message via Yahoo to manual63
The image software has to make the GIF transparent. You need to ask someone who has experience using whatever image software you use. I use Paint Shop Pro and PhotoShop.
__________________
if (Bush == "idiot") return "Bush is an Idiot";
else if (Bush != "idiot") return "Bush is still an idiot";

http://www.yourpolitics.org

Reply With Quote
  #3  
Old October 9th, 2003, 11:27 PM
oni9 oni9 is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Aug 2003
Location: Brisbane, Australia
Posts: 50 oni9 User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 10
I never use picture box so correct me if I'm wrong.

I don't think picture box will let you place an image with another background inside picture box. so you cannot get your GIF transparent to work with in a picture box.

what about make the picture box transparent?
well yes, you can do that by making your form transparent, however your image will go completely transparent with your picture box, so this way won't work again.

Ok, than, how to make transparent effet?
actually it is easy. write your own picture box control using GDI+ or do not use picture box, just draw it on the form using GDI+ (paint event)

Reply With Quote
  #4  
Old October 10th, 2003, 09:11 AM
Anibal Hernande Anibal Hernande is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jul 2003
Posts: 33 Anibal Hernande User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 10
manual63:


I used Animation Shop 3 to design the GIF with a Transparent background, the problem is that when you place it into a picturebox, for some reason the animation plays with a white background.

I try the code below and it did indee made the background Transparent but unfortunately the animation will not run.

Anyone has a suggestion?

Dim b As Bitmap = PictureBox1.Image 'create a bitmap object
b.MakeTransparent(color you want transparent) 'set a color transparent
PictureBox1.Image = b 'reassign modified picture to the pixbox

Reply With Quote
Reply

Viewing: Dev Shed ForumsProgramming Languages - More.Net Development > How to make a GIF inside a picturebox transparent

Developer Shed Advertisers and Affiliates



Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump

Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 


Powered by: vBulletin Version 3.0.5
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.

© 2003-2013 by Developer Shed. All rights reserved. DS Cluster - Follow our Sitemap