Support for bitmap image formats

Martin Schulze joey at infodrom.org
Tue Nov 16 16:40:08 CET 2004


Martin Schulze wrote:
> Martin Schulze wrote:
> > is there a reason the render engine is limited to support only JPEG
> > and BMP?  The wxWidgets library seems to support more image formats,
> > such as commonly used TIFF, PNG, GIF, or less commonly used PNM, PCX,
> > XBM and XPM, just to name some.
> > 
> > I've just tested whether the engine can handle PNG, TIFF and GIF,
> > which worked fine.  I know that's not a proof, but only a
> > circumstantial evidence.
> 
> Here's further research:
> 
>   <http://www.wxwindows.org/feature2.htm> -- wxWidgets 2 Features
>   
>   XPM is implemented on Unix and Windows; and PNG is implemented on both.
>   
>   The wxImage class can load JPEG, TIFF, PCX, GIF, PNM and BMP files and
>   can also rotate and scale images. wxImage is a platform-independent
>   class with emphasis on loading multiple image formats, whereas
>   wxBitmap wraps the appropriate platform-dependent bitmap.
>   
> Hence, it should be fine to enable PNG, TIFF and GIF since they
> are supported on both Unix and Windows.

Maybe I should have added that the renderer from Thuban uses
wxImageFromStream and so according to the name wxImage.

Regards,

	Joey

-- 
MIME - broken solution for a broken design.  -- Ralf Baechle




More information about the Thuban-devel mailing list

This site is hosted by Intevation GmbH (Datenschutzerklärung und Impressum | Privacy Policy and Imprint)