TechTalkz.com Logo Ask the Experts!

Go Back   TechTalkz.com Technology & Computer Troubleshooting Forums > Tech Support Archives > Programing Languages > VB.NET

Passing a ColorPalette as an argument

VB.NET

 
 
Thread Tools Display Modes
Unread 23-11-2007, 03:58 AM   #1
Nathan Sokalski
Guest
 
Posts: n/a
Passing a ColorPalette as an argument

I have finally figured out how to create transparency in GIF files when
creating them with VB.NET (it is harder than I think it should be, but at
least I can do it now). I would like to write a couple functions and/or
subroutines to make this easier. However, when I pass a Bitmap as a
parameter it does not include the data from the Palette property. I have
also tried passing the Palette as a separate argument, but the same problem
occurred. I cannot write a function or subroutine for creating transparency
without being able to pass the Palette. Why is the Palette not being passed,
and what can I do about it? Thanks.
--
Nathan Sokalski
njsokalski*************
http://www.nathansokalski.com/


 
Unread 23-11-2007, 05:59 PM   #2
Michael Phillips, Jr.
Guest
 
Posts: n/a
Re: Passing a ColorPalette as an argument

> Why is the Palette not being passed

Are you sure that the PixelFormat property of the Bitmap passed as an
argument is one of the Indexed pixel formats?

Check it before you pass it as an argument and after to be sure.


"Nathan Sokalski" <njsokalski*************> wrote in message
news:OK3Zs5XLIHA.3516@TK2MSFTNGP02.phx.gbl...
>I have finally figured out how to create transparency in GIF files when
>creating them with VB.NET (it is harder than I think it should be, but at
>least I can do it now). I would like to write a couple functions and/or
>subroutines to make this easier. However, when I pass a Bitmap as a
>parameter it does not include the data from the Palette property. I have
>also tried passing the Palette as a separate argument, but the same problem
>occurred. I cannot write a function or subroutine for creating transparency
>without being able to pass the Palette. Why is the Palette not being
>passed, and what can I do about it? Thanks.
> --
> Nathan Sokalski
> njsokalski*************
> http://www.nathansokalski.com/
>



 
 

Thread Tools
Display Modes



< Home - Windows Help - MS Office Help - Hardware Support >


New To Site? Need Help?

All times are GMT. The time now is 01:48 AM.


vBulletin, Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO
Copyright © 2005-2013, TechTalkz.com. All Rights Reserved - Privacy Policy
Valid XHTML 1.0 Transitional