fxbit / aforge

Automatically exported from code.google.com/p/aforge
Other
0 stars 0 forks source link

Convert from Format16bppGrayScale to Format8bppIndexed is missing #135

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?

1. I would like to Convert from Format16bppGrayScale to Format8bppIndexed

2. I try to use clone(bitmap, Format8bppIndexed) where bitmap is 
16bbpGray -> out of memory

3. I try to use Controls.Bitmap (the documentation said it does the 
convert), but you get what you put (the sourceImage). The convertedImage 
can't be accessed (no getter for this private value).

What is the expected output? What do you see instead?

I expect the Clone() function to work properly with format16bppGrayScale 
to Format8bppIndexed images.

Actually, I took the code in sources/controls/pictureBox.cs (and it works 
well):
   private Bitmap ConvertImage( Bitmap source ) 
   { 
   ... 
   }

Can you correct Clone() in image.cs with this code?

Please use labels and text to provide additional information.

Original issue reported on code.google.com by eavcpgdl...@gmail.com on 19 Apr 2010 at 9:10

GoogleCodeExporter commented 9 years ago
Hi,
this is a know Windows problem, cloning at the same time format changes results 
in frustating "out of memory" error.

Andrew, decrease color depth (and maybe Increase color depth) is a desired 
functionality. Will aprpeciate a conversion/filter for the same.

best,
Vishy

Original comment by vishwade...@gmail.com on 21 Jun 2010 at 7:29

GoogleCodeExporter commented 9 years ago

Original comment by andrew.k...@gmail.com on 28 Jun 2010 at 1:46

GoogleCodeExporter commented 9 years ago
Added two methods into AForge.Imaging.Image class: Convert16bppTo8bpp() and 
Convert8bppTo16bpp() which perform conversion of images with 16 bpp color 
plance to images with 8 bpp color planes and vice versa.

Committed in revision 1268. Will be release in version 2.1.3.

Original comment by andrew.k...@gmail.com on 28 Jun 2010 at 2:43

GoogleCodeExporter commented 9 years ago

Original comment by andrew.k...@gmail.com on 5 Jul 2010 at 1:26