HighTechTalks DotNet Forums  

Passing a ColorPalette as an argument

Dotnet Framework (Drawing) microsoft.public.dotnet.framework.drawing


Discuss Passing a ColorPalette as an argument in the Dotnet Framework (Drawing) forum.



Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old   
Nathan Sokalski
 
Posts: n/a

Default Passing a ColorPalette as an argument - 11-22-2007 , 09:10 PM






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 (AT) hotmail (DOT) com
http://www.nathansokalski.com/



Reply With Quote
  #2  
Old   
Michael Phillips, Jr.
 
Posts: n/a

Default Re: Passing a ColorPalette as an argument - 11-23-2007 , 11:17 AM






Quote:
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 (AT) hotmail (DOT) com> wrote

Quote:
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 (AT) hotmail (DOT) com
http://www.nathansokalski.com/




Reply With Quote
Reply




Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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



Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.