Re: saved bitmap size
- From: "Larry Lard" <larrylard@xxxxxxxxxxx>
- Date: 4 Jul 2005 08:16:57 -0700
Peter Proost wrote:
> Hi group, I've got a question about the size of a saved bitmap.
> What I need to do is open a bitmap if it needs resizing, resize and save it.
> This isn't a problem, but the problem I have is that the original image has
> got an 8 bit indexed pixelformat,
> but you can't create a graphics object for this pixelformat so my bitmap
> uses the default pixelformat:
> Format32bppArgb, but this ofcourse result in a much larger file size (420kB
> instead of 106kB)
> I know I can use for example Format24bppRgb and this reduces the size to
> 300kB but I would like to know if I there's a way I can keep the size at
> 106kB
I've had a little look around, and basically I think you're stuck :(
At present it seems GDI+ just *doesn't do* indexed bitmaps, even the
estimable Bob Powell GDI+ FAQ site has to skirt round these. So if you
want to create or update these, I think your choice is either wait for
a newer version of the framework (and I'm not sure 2.0 is going to do
these), or:
Go down to the bits and bytes yourself... which probably wants to be
done in C# in unsafe code for performance, which - if it sounds like
your thing - is probably great fun, but not something I would like to
try myself...
--
Larry Lard
Replies to group please
.
- References:
- saved bitmap size
- From: Peter Proost
- saved bitmap size
- Prev by Date: Re: RichTextFind methods order of precedence ?
- Next by Date: how tabcontrol backcolcor is seeting in vb.net
- Previous by thread: Re: saved bitmap size
- Next by thread: building an Add-in in .NET for IE?
- Index(es):
Relevant Pages
|
Loading