Convert chart.ToImage chart to 8bpp

Can someone help me out with some code which will convert the 32bpp images generated with chart.ToImage into 8bpp Indexed format? Or is there a way to output the image in 8bpp Index format using chart.ToImage?


I have tried using what I know with System.Drawing, but I can’t seem to get it to work correctly.

Thanks,
Mike

Hi Mike,

Thank you for considering Aspose.

We will look into your requirement and get back to you soon.

Thank You & Best Regards,

What would be perfect is if chart.ToImage could output in 8bpp png format and maintain the transparency you get when you export a pie chart with the background set to ‘None’.


Right now, the transparency is maintained correctly when exporting the chart to a normal png or emf file, but for a really lame reason I have to have this image in 8bpp png format.

I would think (hope) that this would be fairly trivial for you guys to implement as you are just using the GDI+ libraries…so there could be an overload to chart.ToImage that takes a PixelFormat enum value. Is this possible to do?

Thanks,
Mike Gates

Hi Mike,

Thank you for providing further details about your requirements, We will look into your requirements and get back to you soon.

Thank You & Best Regards,