Removing alpha from your image would not set the flags to 1, but instead
remove the 2. Take a look at
http://msdn.microsoft.com/library/de...classtopic.asp
for some info on which flags are available. Just for note, the flags cannot
be directly set via the Flags property as they represent the properties of
the image referenced, in order to change them, you must change the image.
In order to have your image not have alpha information, you will need to
choose a format that does not use it. For instance, when creating a new
Bitmap, you might call the constructor with:
Bitmap(320,240, System.Drawing.Imaging.PixelFormat.Format32bppRgb) ;
Which overrides the default format of Format32bppArgb.
Without knowing the specifics of what you are doing internally it is hard to
say exactly what you would have to do, so if it is creating a new image and
not having it not have an Alpha channel, then what I mentioned above is what
you would want to do. If you’ve got an existing image that you want to remove
Alpha from, you can simply draw it to a new image that does not support that
channel and do with it as you please (display, save, etc).
Brendan
"RicercatoreSbadato" wrote:
I have notice that my images have the value Image.Flags = 2 (HasAlpha).
How Can I set the Flags to 1? I would like to eliminate the alpha channel...
--
RicercatoreSbadato